turbopipe 1.0.1__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of turbopipe might be problematic. Click here for more details.
- turbopipe-1.0.2/.github/workflows/debug.yaml +42 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/.github/workflows/release.yaml +2 -3
- {turbopipe-1.0.1 → turbopipe-1.0.2}/PKG-INFO +1 -1
- {turbopipe-1.0.1 → turbopipe-1.0.2}/meson.build +3 -3
- {turbopipe-1.0.1 → turbopipe-1.0.2}/turbopipe/_turbopipe.cpp +13 -9
- {turbopipe-1.0.1 → turbopipe-1.0.2}/turbopipe/version.py +1 -1
- {turbopipe-1.0.1 → turbopipe-1.0.2}/.gitattributes +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/.gitignore +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/License.md +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/Readme.md +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/examples/basic.py +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/examples/benchmark.py +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/pyproject.toml +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/turbopipe/__init__.py +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/turbopipe/include/gl_methods.hpp +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/turbopipe/include/glcorearb.h +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/turbopipe/include/khrplatform.h +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/turbopipe/resources/images/turbopipe.png +0 -0
- {turbopipe-1.0.1 → turbopipe-1.0.2}/turbopipe/resources/images/turbopipe.svg +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: debug
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
wheels:
|
|
8
|
+
name: Build ${{matrix.pyver}} wheels on ${{matrix.os}}
|
|
9
|
+
runs-on: ${{matrix.os}}
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
os: [windows-latest]
|
|
13
|
+
pyver: [cp311]
|
|
14
|
+
|
|
15
|
+
env:
|
|
16
|
+
CIBW_BUILD: ${{matrix.pyver}}-*
|
|
17
|
+
CIBW_ARCHS_LINUX: auto
|
|
18
|
+
CIBW_ARCHS_MACOS: arm64
|
|
19
|
+
CIBW_ARCHS_WINDOWS: auto
|
|
20
|
+
CIBW_SKIP: '*musllinux* *i686* *-win32'
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
- uses: actions/setup-python@v5
|
|
25
|
+
|
|
26
|
+
- name: Prepare MSVC
|
|
27
|
+
if: matrix.os == 'windows-latest'
|
|
28
|
+
uses: bus1/cabuild/action/msdevshell@v1
|
|
29
|
+
with:
|
|
30
|
+
architecture: x64
|
|
31
|
+
|
|
32
|
+
- name: deps
|
|
33
|
+
run: python -m pip install build
|
|
34
|
+
|
|
35
|
+
- name: wheels
|
|
36
|
+
run: python -m build
|
|
37
|
+
|
|
38
|
+
- name: upload
|
|
39
|
+
uses: actions/upload-artifact@v3
|
|
40
|
+
with:
|
|
41
|
+
name: package
|
|
42
|
+
path: dist/*.whl
|
|
@@ -28,15 +28,14 @@ jobs:
|
|
|
28
28
|
path: package/*.tar.gz
|
|
29
29
|
|
|
30
30
|
wheels:
|
|
31
|
-
name: Build
|
|
31
|
+
name: Build Python wheels on ${{matrix.os}}
|
|
32
32
|
runs-on: ${{matrix.os}}
|
|
33
33
|
strategy:
|
|
34
34
|
matrix:
|
|
35
35
|
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
|
|
36
|
-
pyver: [cp39, cp310, cp311, cp312]
|
|
37
36
|
|
|
38
37
|
env:
|
|
39
|
-
CIBW_BUILD:
|
|
38
|
+
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*
|
|
40
39
|
CIBW_ARCHS_LINUX: auto
|
|
41
40
|
CIBW_ARCHS_MACOS: arm64
|
|
42
41
|
CIBW_ARCHS_WINDOWS: auto
|
|
@@ -8,12 +8,14 @@ project('turbopipe', 'cpp',
|
|
|
8
8
|
|
|
9
9
|
default_options: [
|
|
10
10
|
'warning_level=3',
|
|
11
|
-
'cpp_std=c++
|
|
11
|
+
'cpp_std=c++14',
|
|
12
12
|
'buildtype=release',
|
|
13
13
|
'optimization=3'
|
|
14
14
|
]
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
+
message('C++ compiler: ' + meson.get_compiler('cpp').get_id())
|
|
18
|
+
|
|
17
19
|
# ----------------------------------------------|
|
|
18
20
|
# Platform flags
|
|
19
21
|
|
|
@@ -21,8 +23,6 @@ cpp_args = ['-fpermissive']
|
|
|
21
23
|
|
|
22
24
|
if host_machine.system() == 'darwin'
|
|
23
25
|
cpp_args += ['-Wno-deprecated-declarations']
|
|
24
|
-
elif host_machine.system() == 'windows'
|
|
25
|
-
cpp_args += ['-static', '-static-libgcc', '-static-libstdc++']
|
|
26
26
|
endif
|
|
27
27
|
|
|
28
28
|
# ----------------------------------------------|
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
#include <thread>
|
|
13
13
|
#include <mutex>
|
|
14
14
|
#include <condition_variable>
|
|
15
|
-
#include <unistd.h>
|
|
16
15
|
#include <iostream>
|
|
17
16
|
#include <unordered_map>
|
|
18
17
|
#include <deque>
|
|
@@ -172,14 +171,19 @@ private:
|
|
|
172
171
|
stream[file].pop_front();
|
|
173
172
|
lock.unlock();
|
|
174
173
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
tell
|
|
182
|
-
|
|
174
|
+
#ifdef _WIN32
|
|
175
|
+
// Windows doesn't like chunked writes ??
|
|
176
|
+
write(work.file, (char*) work.map, work.size);
|
|
177
|
+
#else
|
|
178
|
+
// Optimization: Write in chunks of 4096 (RAM page size)
|
|
179
|
+
size_t tell = 0;
|
|
180
|
+
while (tell < work.size) {
|
|
181
|
+
size_t chunk = min(work.size - tell, static_cast<size_t>(4096));
|
|
182
|
+
size_t written = write(work.file, (char*) work.map + tell, chunk);
|
|
183
|
+
if (written == -1) break;
|
|
184
|
+
tell += written;
|
|
185
|
+
}
|
|
186
|
+
#endif
|
|
183
187
|
|
|
184
188
|
// Signal work is done
|
|
185
189
|
lock.lock();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|