dfttest2 10.dev0__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.
Files changed (65) hide show
  1. dfttest2-10.dev0/.gitignore +289 -0
  2. dfttest2-10.dev0/PKG-INFO +87 -0
  3. dfttest2-10.dev0/dfttest2/__init__.py +17 -0
  4. dfttest2-10.dev0/dfttest2/py.typed +0 -0
  5. dfttest2-10.dev0/pyproject.toml +63 -0
  6. dfttest2-10.dev0/vs-dfttest2/.git +1 -0
  7. dfttest2-10.dev0/vs-dfttest2/.github/workflows/linux.yml +86 -0
  8. dfttest2-10.dev0/vs-dfttest2/.github/workflows/linux_arm64.yml +67 -0
  9. dfttest2-10.dev0/vs-dfttest2/.github/workflows/windows.yml +158 -0
  10. dfttest2-10.dev0/vs-dfttest2/.github/workflows/windows_arm64.yml +69 -0
  11. dfttest2-10.dev0/vs-dfttest2/.gitmodules +3 -0
  12. dfttest2-10.dev0/vs-dfttest2/CMakeLists.txt +193 -0
  13. dfttest2-10.dev0/vs-dfttest2/LICENSE +674 -0
  14. dfttest2-10.dev0/vs-dfttest2/README.md +22 -0
  15. dfttest2-10.dev0/vs-dfttest2/common/config.h.in +1 -0
  16. dfttest2-10.dev0/vs-dfttest2/cpu_source/CMakeLists.txt +133 -0
  17. dfttest2-10.dev0/vs-dfttest2/cpu_source/cpu_dispatch.h.in +14 -0
  18. dfttest2-10.dev0/vs-dfttest2/cpu_source/dfttest2_cpu.h +62 -0
  19. dfttest2-10.dev0/vs-dfttest2/cpu_source/getframe_impl.cpp +444 -0
  20. dfttest2-10.dev0/vs-dfttest2/cpu_source/kernel.hpp +1996 -0
  21. dfttest2-10.dev0/vs-dfttest2/cpu_source/source.cpp +426 -0
  22. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/.git +1 -0
  23. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/LICENSE +191 -0
  24. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/README.md +14 -0
  25. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/changelog.txt +221 -0
  26. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/dispatch_example1.cpp +189 -0
  27. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/dispatch_example2.cpp +208 -0
  28. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/instrset.h +1489 -0
  29. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/instrset_detect.cpp +167 -0
  30. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vector_convert.h +574 -0
  31. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectorclass.h +86 -0
  32. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectorf128.h +2986 -0
  33. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectorf256.h +3009 -0
  34. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectorf256e.h +1951 -0
  35. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectorf512.h +2036 -0
  36. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectorf512e.h +1935 -0
  37. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectori128.h +7033 -0
  38. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectori256.h +5745 -0
  39. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectori256e.h +3954 -0
  40. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectori512.h +2119 -0
  41. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectori512e.h +2342 -0
  42. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectori512s.h +2294 -0
  43. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectori512se.h +2076 -0
  44. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectormath_common.h +327 -0
  45. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectormath_exp.h +2173 -0
  46. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectormath_hyp.h +717 -0
  47. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectormath_lib.h +2026 -0
  48. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/vectormath_trig.h +898 -0
  49. dfttest2-10.dev0/vs-dfttest2/cuda_source/kernel.hpp +202 -0
  50. dfttest2-10.dev0/vs-dfttest2/cuda_source/source.cpp +1208 -0
  51. dfttest2-10.dev0/vs-dfttest2/cuda_source/win32.cpp +87 -0
  52. dfttest2-10.dev0/vs-dfttest2/dfttest2.py +851 -0
  53. dfttest2-10.dev0/vs-dfttest2/gcc_source/CMakeLists.txt +38 -0
  54. dfttest2-10.dev0/vs-dfttest2/gcc_source/dfttest2_cpu.h +52 -0
  55. dfttest2-10.dev0/vs-dfttest2/gcc_source/getframe_impl.cpp +460 -0
  56. dfttest2-10.dev0/vs-dfttest2/gcc_source/kernel.hpp +2057 -0
  57. dfttest2-10.dev0/vs-dfttest2/gcc_source/source.cpp +373 -0
  58. dfttest2-10.dev0/vs-dfttest2/hip_source/kernel.hpp +198 -0
  59. dfttest2-10.dev0/vs-dfttest2/hip_source/source.cpp +1135 -0
  60. dfttest2-10.dev0/vs-dfttest2/hiprtc_source/dft_kernels.hpp +1768 -0
  61. dfttest2-10.dev0/vs-dfttest2/hiprtc_source/kernel.hpp +280 -0
  62. dfttest2-10.dev0/vs-dfttest2/hiprtc_source/source.cpp +993 -0
  63. dfttest2-10.dev0/vs-dfttest2/nvrtc_source/dft_kernels.hpp +1780 -0
  64. dfttest2-10.dev0/vs-dfttest2/nvrtc_source/kernel.hpp +278 -0
  65. dfttest2-10.dev0/vs-dfttest2/nvrtc_source/source.cpp +1062 -0
@@ -0,0 +1,289 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
219
+
220
+
221
+ # Prerequisites
222
+ *.d
223
+
224
+ # Compiled Object files
225
+ *.slo
226
+ *.lo
227
+ *.o
228
+ *.obj
229
+
230
+ # Precompiled Headers
231
+ *.gch
232
+ *.pch
233
+
234
+ # Linker files
235
+ *.ilk
236
+
237
+ # Debugger Files
238
+ *.pdb
239
+
240
+ # Compiled Dynamic libraries
241
+ *.so
242
+ *.dylib
243
+ *.dll
244
+ *.so.*
245
+
246
+
247
+ # Fortran module files
248
+ *.mod
249
+ *.smod
250
+
251
+ # Compiled Static libraries
252
+ *.lai
253
+ *.la
254
+ *.a
255
+ *.lib
256
+
257
+ # Executables
258
+ *.exe
259
+ *.out
260
+ *.app
261
+
262
+ # Build directories
263
+ build/
264
+ Build/
265
+ build-*/
266
+
267
+ # CMake generated files
268
+ CMakeFiles/
269
+ CMakeCache.txt
270
+ cmake_install.cmake
271
+ Makefile
272
+ install_manifest.txt
273
+ compile_commands.json
274
+
275
+ # Temporary files
276
+ *.tmp
277
+ *.log
278
+ *.bak
279
+ *.swp
280
+
281
+ # vcpkg
282
+ vcpkg_installed/
283
+
284
+ # debug information files
285
+ *.dwo
286
+
287
+ # test output & cache
288
+ Testing/
289
+ .cache/
@@ -0,0 +1,87 @@
1
+ Metadata-Version: 2.4
2
+ Name: dfttest2
3
+ Version: 10.dev0
4
+ Summary: DFTTest re-implemetation
5
+ Project-URL: Source Code, https://github.com/AmusementClub/vs-dfttest2
6
+ Project-URL: Bug Tracker, https://github.com/AmusementClub/vs-dfttest2/issues
7
+ Project-URL: Repository, https://github.com/Jaded-Encoding-Thaumaturgy/vs-wheels
8
+ Author: WolframRhodium
9
+ Maintainer-email: Vardë <ichunjo.le.terrible@gmail.com>
10
+ License-Expression: GPL-3.0-or-later
11
+ License-File: vs-dfttest2/LICENSE
12
+ Requires-Python: >=3.12
13
+ Requires-Dist: vapoursynth>=75
14
+ Provides-Extra: gcc
15
+ Requires-Dist: vapoursynth-dfttest2-gcc; extra == 'gcc'
16
+ Description-Content-Type: text/markdown
17
+
18
+ # dfttest2
19
+
20
+ A VapourSynth re-implementation of DFTTest.
21
+
22
+ This package serves as a **meta-package** providing:
23
+
24
+ 1. A high-level **Python interface** for `dfttest2`.
25
+ 2. Optional **backend dependencies** via extras to simplify installation.
26
+
27
+ ## Backends
28
+
29
+ ### **GPU Backends**
30
+
31
+ | Backend | Platform | Implementation Type |
32
+ | -------- | --------------------------------------- | -------------------------- |
33
+ | `nvrtc` | Windows, Linux (x86-64, aarch64) | JIT Compilation |
34
+ | `hiprtc` | Windows, Linux (x86-64) | JIT Compilation |
35
+ | `cufft` | Windows, Linux (x86-64, aarch64) | Library |
36
+ | `hipfft` | Windows, Linux (x86-64) | Library |
37
+ | `cpu` | Windows, Linux (x86-64), macOS (x86-64) | VCL |
38
+ | `gcc` | All Platforms | Compiler Vector Extensions |
39
+
40
+ ### **Which one to use?**
41
+
42
+ | Backend | Requirement |
43
+ | ------- | ----------------------------------- |
44
+ | NVRTC | `sbsize=16` and CUDA-enabled system |
45
+ | HIPRTC | `sbsize=16` and HIP-enabled system |
46
+ | cuFFT | CUDA-enabled system |
47
+ | hipFFT | HIP-enabled system |
48
+ | CPU | `sbsize=16` |
49
+ | GCC | `sbsize=16` |
50
+
51
+ **Approximate Speed:** NVRTC == HIPRTC >> cuFFT > hipFFT > CPU == GCC
52
+
53
+ ## Installation
54
+
55
+ For example, to install the NVRTC and CPU backends:
56
+
57
+ ```bash
58
+ pip install dfttest2[nvrtc,cpu]
59
+ ```
60
+
61
+ ---
62
+
63
+ README.md from parent project
64
+
65
+ ---
66
+ # vs-dfttest2
67
+ DFTTest re-implemetation (CUDA and x86)
68
+
69
+ ## Usage
70
+ ```python3
71
+ from dfttest2 import DFTTest
72
+ output = DFTTest(input)
73
+ ```
74
+
75
+ See also [VapourSynth-DFTTest](https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DFTTest)
76
+
77
+ ## Compilation
78
+ ```bash
79
+ # additional options: -D ENABLE_CUDA=ON -D ENABLE_CPU=ON
80
+ cmake -S . -B build
81
+
82
+ cmake --build build
83
+
84
+ cmake --install build
85
+ ```
86
+
87
+ If the vapoursynth library cannot be found by pkg-config, then the cmake variable `VS_INCLUDE_DIR` should be set.
@@ -0,0 +1,17 @@
1
+ from ._dfttest2 import ( # type: ignore
2
+ FREQ,
3
+ SIGMA,
4
+ Backend,
5
+ DFTTest,
6
+ DFTTest2,
7
+ flatten,
8
+ get_location,
9
+ get_window,
10
+ get_window_value,
11
+ init_backend,
12
+ normalize,
13
+ select_backend,
14
+ to_func,
15
+ )
16
+
17
+ __all__ = ["Backend", "DFTTest", "DFTTest2"]
File without changes
@@ -0,0 +1,63 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.29.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "dfttest2"
7
+ dynamic = ["version", "readme"]
8
+ description = "DFTTest re-implemetation"
9
+ license = "GPL-3.0-or-later"
10
+ license-files = ["vs-dfttest2/LICENSE"]
11
+ requires-python = ">=3.12"
12
+ authors = [{ name = "WolframRhodium" }]
13
+ maintainers = [{ name = "Vardë", email = "ichunjo.le.terrible@gmail.com" }]
14
+ dependencies = ["vapoursynth>=75"]
15
+
16
+ [project.optional-dependencies]
17
+ # cuda = ["vapoursynth-dfttest2_cuda", "vapoursynth-dfttest2_nvrtc"]
18
+ # hip = ["vapoursynth-dfttest2_hip", "vapoursynth-dfttest2_hiprtc"]
19
+ # cufft = ["vapoursynth-dfttest2_cuda"]
20
+ # nvrtc = ["vapoursynth-dfttest2_nvrtc"]
21
+ # hipfft = ["vapoursynth-dfttest2_hip"]
22
+ # hiprtc = ["vapoursynth-dfttest2_hiprtc"]
23
+ # cpu = ["vapoursynth-dfttest2_cpu"]
24
+ gcc = ["vapoursynth-dfttest2-gcc"]
25
+
26
+ # windows = ["dfttest2[cuda,hip,gcc,cpu]"]
27
+ # linux = [
28
+ # "dfttest2[cuda,hip,gcc,cpu] ; platform_machine == 'x86_64'",
29
+ # "dfttest2[cuda,gcc] ; platform_machine == 'aarch64'",
30
+ # ]
31
+ # macos = [
32
+ # "dfttest2[cpu,gcc] ; platform_machine == 'x86_64'",
33
+ # "dfttest2[gcc] ; platform_machine == 'arm64'",
34
+ # ]
35
+
36
+ [project.urls]
37
+ "Source Code" = "https://github.com/AmusementClub/vs-dfttest2"
38
+ "Bug Tracker" = "https://github.com/AmusementClub/vs-dfttest2/issues"
39
+ "Repository" = "https://github.com/Jaded-Encoding-Thaumaturgy/vs-wheels"
40
+
41
+ [tool.hatch.version]
42
+ source = "vcs"
43
+ tag-pattern = '^v(?P<version>.*)$'
44
+
45
+ [tool.hatch.version.raw-options]
46
+ root = "vs-dfttest2"
47
+ local_scheme = "no-local-version"
48
+
49
+ [tool.hatch.build.targets.sdist]
50
+ include = ["dfttest2", "vs-dfttest2"]
51
+
52
+ [tool.hatch.build.targets.wheel]
53
+ include = ["dfttest2"]
54
+
55
+ [tool.hatch.build.targets.wheel.force-include]
56
+ "vs-dfttest2/dfttest2.py" = "dfttest2/_dfttest2.py"
57
+
58
+ [tool.hatch.metadata.hooks.fancy-pypi-readme]
59
+ content-type = "text/markdown"
60
+ fragments = [{ path = "README.md" }, { path = "vs-dfttest2/README.md" }]
61
+
62
+ [tool.uv.sources]
63
+ vapoursynth-dfttest2-gcc = { workspace = true }
@@ -0,0 +1 @@
1
+ gitdir: ../../../.git/modules/dfttest2/dfttest2/vs-dfttest2
@@ -0,0 +1,86 @@
1
+ name: Build (Linux)
2
+
3
+ on:
4
+ push:
5
+ paths:
6
+ - 'CMakeLists.txt'
7
+ - 'cpu_source/*'
8
+ - 'cuda_source/*'
9
+ - 'nvrtc_source/*'
10
+ - '.github/workflows/linux.yml'
11
+ workflow_dispatch:
12
+
13
+ jobs:
14
+ build-linux:
15
+ runs-on: ubuntu-24.04
16
+ steps:
17
+ - name: Checkout repo
18
+ uses: actions/checkout@v4
19
+ with:
20
+ submodules: true
21
+
22
+ - name: Setup Ninja
23
+ run: pip3 install ninja
24
+
25
+ - name: Setup CUDA
26
+ run: |
27
+ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
28
+ sudo dpkg -i cuda-keyring_1.1-1_all.deb
29
+ sudo apt-get update
30
+ sudo apt-get install -y cuda-nvcc-13-0 cuda-cudart-dev-13-0 cuda-nvrtc-dev-13-0 libcufft-dev-13-0
31
+ echo "PATH=/usr/local/cuda/bin${PATH:+:${PATH}}" >> $GITHUB_ENV
32
+ echo "CUDA_PATH=/usr/local/cuda" >> $GITHUB_ENV
33
+ echo "LD_LIBRARY_PATH=/usr/local/cuda/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
34
+
35
+ - name: Download VapourSynth headers
36
+ run: |
37
+ wget -q -O vs.zip https://github.com/vapoursynth/vapoursynth/archive/refs/tags/R57.zip
38
+ unzip -q vs.zip
39
+ mv vapoursynth*/ vapoursynth
40
+
41
+ - name: Configure
42
+ run: cmake -S . -B build -G Ninja
43
+ -D VS_INCLUDE_DIR="`pwd`/vapoursynth/include"
44
+ -D ENABLE_CUDA=ON
45
+ -D USE_NVRTC_STATIC=ON
46
+ -D ENABLE_CPU=ON
47
+ -D CMAKE_BUILD_TYPE=Release
48
+ -D CMAKE_CXX_COMPILER=g++
49
+ -D CMAKE_CXX_FLAGS="-Wall -ffast-math"
50
+
51
+ - name: Build
52
+ run: cmake --build build --config Release --verbose
53
+
54
+ - name: Install
55
+ run: cmake --install build --prefix artifact
56
+
57
+ - name: Setup HIP
58
+ run: |
59
+ wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
60
+ echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/7.0 noble main" | sudo tee --append /etc/apt/sources.list.d/rocm.list
61
+ echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600
62
+ sudo apt update
63
+ sudo apt install hip-runtime-amd rocm-device-libs hipfft-dev hip-dev
64
+
65
+ - name: Configure (HIP)
66
+ run: cmake -S . -B build_hip -G Ninja
67
+ -D VS_INCLUDE_DIR="`pwd`/vapoursynth/include"
68
+ -D ENABLE_CUDA=OFF
69
+ -D ENABLE_CPU=OFF
70
+ -D ENABLE_HIP=ON
71
+ -D CMAKE_BUILD_TYPE=Release
72
+ -D CMAKE_CXX_FLAGS="-Wall -ffast-math"
73
+ -D CMAKE_PREFIX_PATH=/opt/rocm
74
+ -D CMAKE_POLICY_VERSION_MINIMUM=3.5
75
+
76
+ - name: Build (HIP)
77
+ run: cmake --build build_hip --config Release --verbose
78
+
79
+ - name: Install (HIP)
80
+ run: cmake --install build_hip --prefix artifact
81
+
82
+ - name: Upload
83
+ uses: actions/upload-artifact@v4
84
+ with:
85
+ name: vs-dfttest2-Linux
86
+ path: artifact
@@ -0,0 +1,67 @@
1
+ name: Build (Linux, ARM64)
2
+
3
+ on:
4
+ push:
5
+ paths:
6
+ - 'CMakeLists.txt'
7
+ - 'gcc_source/*'
8
+ - 'cuda_source/*'
9
+ - 'nvrtc_source/*'
10
+ - '.github/workflows/linux_arm64.yml'
11
+ workflow_dispatch:
12
+
13
+ jobs:
14
+ build-linux:
15
+ runs-on: ubuntu-24.04-arm
16
+ steps:
17
+ - name: Checkout repo
18
+ uses: actions/checkout@v4
19
+ with:
20
+ submodules: true
21
+
22
+ - name: Setup clang
23
+ run: |
24
+ wget https://apt.llvm.org/llvm.sh
25
+ chmod +x llvm.sh
26
+ sudo ./llvm.sh all
27
+
28
+ - name: Setup Ninja
29
+ run: pip3 install ninja
30
+
31
+ - name: Setup CUDA
32
+ run: |
33
+ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/sbsa/cuda-keyring_1.1-1_all.deb
34
+ sudo dpkg -i cuda-keyring_1.1-1_all.deb
35
+ sudo apt-get update
36
+ sudo apt-get install -y cuda-nvcc-13-0 cuda-cudart-dev-13-0 cuda-nvrtc-dev-13-0 libcufft-dev-13-0
37
+ echo "PATH=/usr/local/cuda/bin${PATH:+:${PATH}}" >> $GITHUB_ENV
38
+ echo "CUDA_PATH=/usr/local/cuda" >> $GITHUB_ENV
39
+ echo "LD_LIBRARY_PATH=/usr/local/cuda/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
40
+
41
+ - name: Download VapourSynth headers
42
+ run: |
43
+ wget -q -O vs.zip https://github.com/vapoursynth/vapoursynth/archive/refs/tags/R57.zip
44
+ unzip -q vs.zip
45
+ mv vapoursynth*/ vapoursynth
46
+
47
+ - name: Configure
48
+ run: cmake -S . -B build -G Ninja
49
+ -D VS_INCLUDE_DIR="`pwd`/vapoursynth/include"
50
+ -D ENABLE_CUDA=ON
51
+ -D ENABLE_CPU=OFF
52
+ -D ENABLE_GCC=ON
53
+ -D CMAKE_BUILD_TYPE=Release
54
+ -D CMAKE_CXX_COMPILER=clang++
55
+ -D CMAKE_CXX_FLAGS="-Wall -ffast-math"
56
+
57
+ - name: Build
58
+ run: cmake --build build --config Release --verbose
59
+
60
+ - name: Install
61
+ run: cmake --install build --prefix artifact
62
+
63
+ - name: Upload
64
+ uses: actions/upload-artifact@v4
65
+ with:
66
+ name: vs-dfttest2-Linux
67
+ path: artifact