From 822217b0a47812e944688c81b7519626b4a66caf Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 10:16:22 -0700 Subject: [PATCH 01/15] Initial version of pre-commit "Check SPDX-License-Identifier" --- .pre-commit-config.yaml | 8 ++ .spdx-ignore | 196 ++++++++++++++++++++++++++++++++++++++++ toolshed/check_spdx.py | 50 ++++++++++ 3 files changed, 254 insertions(+) create mode 100644 .spdx-ignore create mode 100755 toolshed/check_spdx.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9ec80a39a..95a1e7805 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,6 +19,14 @@ repos: - id: ruff args: [--fix, --show-fixes] - id: ruff-format + + - repo: local + hooks: + - id: check-spdx + name: Check SPDX-License-Identifier + entry: ./toolshed/check_spdx.py + language: system + - repo: https://github.com/PyCQA/bandit rev: 8ff25e07e487f143571cc305e56dd0253c60bc7b #v1.8.3 hooks: diff --git a/.spdx-ignore b/.spdx-ignore new file mode 100644 index 000000000..f983c0f65 --- /dev/null +++ b/.spdx-ignore @@ -0,0 +1,196 @@ +# Cleanup hint: tail -n +2 .spdx-ignore | LC_ALL=C sort | uniq +.gitattributes +.github/BACKPORT_BRANCH +.github/PULL_REQUEST_TEMPLATE.md +.github/copy-pr-bot.yaml +.gitignore +CONTRIBUTING.md +LICENSE.md +README.md +SECURITY.md +ci/versions.json +cuda_bindings/LICENSE +cuda_bindings/MANIFEST.in +cuda_bindings/README.md +cuda_bindings/benchmarks/conftest.py +cuda_bindings/benchmarks/kernels.py +cuda_bindings/benchmarks/pytest.ini +cuda_bindings/benchmarks/test_cupy.py +cuda_bindings/benchmarks/test_launch_latency.py +cuda_bindings/benchmarks/test_numba.py +cuda_bindings/benchmarks/test_pointer_attributes.py +cuda_bindings/cuda/bindings/__init__.pxd +cuda_bindings/cuda/bindings/__init__.py +cuda_bindings/cuda/bindings/_bindings/__init__.py +cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in +cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in +cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in +cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in +cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in +cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in +cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in +cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in +cuda_bindings/cuda/bindings/_bindings/loader.cpp +cuda_bindings/cuda/bindings/_bindings/loader.h +cuda_bindings/cuda/bindings/_bindings/loader.pxd +cuda_bindings/cuda/bindings/_internal/__init__.py +cuda_bindings/cuda/bindings/_lib/__init__.py +cuda_bindings/cuda/bindings/_lib/cyruntime/__init__.py +cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in +cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in +cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in +cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in +cuda_bindings/cuda/bindings/_lib/dlfcn.pxd +cuda_bindings/cuda/bindings/_lib/param_packer.cpp +cuda_bindings/cuda/bindings/_lib/param_packer.h +cuda_bindings/cuda/bindings/_lib/param_packer.pxd +cuda_bindings/cuda/bindings/_lib/utils.pxd.in +cuda_bindings/cuda/bindings/_lib/utils.pyx.in +cuda_bindings/cuda/bindings/_path_finder/README.md +cuda_bindings/cuda/bindings/_version.py +cuda_bindings/cuda/bindings/cydriver.pxd.in +cuda_bindings/cuda/bindings/cydriver.pyx.in +cuda_bindings/cuda/bindings/cynvrtc.pxd.in +cuda_bindings/cuda/bindings/cynvrtc.pyx.in +cuda_bindings/cuda/bindings/cyruntime.pxd.in +cuda_bindings/cuda/bindings/cyruntime.pyx.in +cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in +cuda_bindings/cuda/bindings/cyruntime_types.pxi.in +cuda_bindings/cuda/bindings/driver.pxd.in +cuda_bindings/cuda/bindings/driver.pyx.in +cuda_bindings/cuda/bindings/nvrtc.pxd.in +cuda_bindings/cuda/bindings/nvrtc.pyx.in +cuda_bindings/cuda/bindings/runtime.pxd.in +cuda_bindings/cuda/bindings/runtime.pyx.in +cuda_bindings/cuda/ccuda.pxd +cuda_bindings/cuda/ccuda.pyx +cuda_bindings/cuda/ccudart.pxd +cuda_bindings/cuda/ccudart.pyx +cuda_bindings/cuda/cnvrtc.pxd +cuda_bindings/cuda/cnvrtc.pyx +cuda_bindings/cuda/cuda.pyx +cuda_bindings/cuda/cudart.pyx +cuda_bindings/cuda/nvrtc.pyx +cuda_bindings/docs/Makefile +cuda_bindings/docs/README.md +cuda_bindings/docs/build_docs.sh +cuda_bindings/docs/make.bat +cuda_bindings/docs/source/_static/images/Nsight-Compute-CLI-625x473.png +cuda_bindings/docs/source/_static/javascripts/version_dropdown.js +cuda_bindings/docs/source/_static/logo-dark-mode.png +cuda_bindings/docs/source/_static/logo-light-mode.png +cuda_bindings/docs/source/_templates/main.html +cuda_bindings/docs/source/_templates/sidebar/variant-selector.html +cuda_bindings/docs/source/conduct.md +cuda_bindings/docs/source/conf.py +cuda_bindings/docs/source/contribute.md +cuda_bindings/docs/source/environment_variables.md +cuda_bindings/docs/source/install.md +cuda_bindings/docs/source/motivation.md +cuda_bindings/docs/source/overview.md +cuda_bindings/docs/source/release/11.4.0-notes.md +cuda_bindings/docs/source/release/11.5.0-notes.md +cuda_bindings/docs/source/release/11.6.0-notes.md +cuda_bindings/docs/source/release/11.6.1-notes.md +cuda_bindings/docs/source/release/11.7.0-notes.md +cuda_bindings/docs/source/release/11.7.1-notes.md +cuda_bindings/docs/source/release/11.8.0-notes.md +cuda_bindings/docs/source/release/11.8.1-notes.md +cuda_bindings/docs/source/release/11.8.2-notes.md +cuda_bindings/docs/source/release/11.8.3-notes.md +cuda_bindings/docs/source/release/11.8.4-notes.md +cuda_bindings/docs/source/release/11.8.5-notes.md +cuda_bindings/docs/source/release/11.8.6-notes.md +cuda_bindings/docs/source/release/12.0.0-notes.md +cuda_bindings/docs/source/release/12.1.0-notes.md +cuda_bindings/docs/source/release/12.2.0-notes.md +cuda_bindings/docs/source/release/12.2.1-notes.md +cuda_bindings/docs/source/release/12.3.0-notes.md +cuda_bindings/docs/source/release/12.4.0-notes.md +cuda_bindings/docs/source/release/12.5.0-notes.md +cuda_bindings/docs/source/release/12.6.0-notes.md +cuda_bindings/docs/source/release/12.6.1-notes.md +cuda_bindings/docs/source/release/12.6.2-notes.md +cuda_bindings/docs/source/release/12.8.0-notes.md +cuda_bindings/docs/versions.json +cuda_bindings/examples/0_Introduction/clock_nvrtc_test.py +cuda_bindings/examples/0_Introduction/simpleCubemapTexture_test.py +cuda_bindings/examples/0_Introduction/simpleP2P_test.py +cuda_bindings/examples/0_Introduction/simpleZeroCopy_test.py +cuda_bindings/examples/0_Introduction/systemWideAtomics_test.py +cuda_bindings/examples/0_Introduction/vectorAddDrv_test.py +cuda_bindings/examples/0_Introduction/vectorAddMMAP_test.py +cuda_bindings/examples/2_Concepts_and_Techniques/streamOrderedAllocation_test.py +cuda_bindings/examples/3_CUDA_Features/globalToShmemAsyncCopy_test.py +cuda_bindings/examples/3_CUDA_Features/simpleCudaGraphs_test.py +cuda_bindings/examples/4_CUDA_Libraries/conjugateGradientMultiBlockCG_test.py +cuda_bindings/examples/common/common.py +cuda_bindings/examples/common/helper_cuda.py +cuda_bindings/examples/common/helper_string.py +cuda_bindings/examples/extra/isoFDModelling_test.py +cuda_bindings/examples/extra/jit_program_test.py +cuda_bindings/examples/extra/numba_emm_plugin.py +cuda_bindings/examples/pytest.ini +cuda_bindings/requirements.txt +cuda_bindings/site-packages/_cuda_bindings_redirector.pth +cuda_bindings/site-packages/_cuda_bindings_redirector.py +cuda_bindings/tests/cython/build_tests.bat +cuda_bindings/tests/cython/build_tests.sh +cuda_bindings/tests/cython/test_ccuda.pyx +cuda_bindings/tests/cython/test_ccudart.pyx +cuda_bindings/tests/cython/test_cython.py +cuda_bindings/tests/cython/test_interoperability_cython.pyx +cuda_bindings/tests/pytest.ini +cuda_bindings/tests/test_cuda.py +cuda_bindings/tests/test_cudart.py +cuda_bindings/tests/test_interoperability.py +cuda_bindings/tests/test_kernelParams.py +cuda_bindings/tests/test_nvrtc.py +cuda_core/LICENSE +cuda_core/README.md +cuda_core/cuda/core/__init__.pxd +cuda_core/cuda/core/experimental/dlpack.h +cuda_core/docs/Makefile +cuda_core/docs/README.md +cuda_core/docs/build_docs.sh +cuda_core/docs/source/_static/javascripts/version_dropdown.js +cuda_core/docs/source/_static/logo-dark-mode.png +cuda_core/docs/source/_static/logo-light-mode.png +cuda_core/docs/source/_templates/main.html +cuda_core/docs/source/_templates/sidebar/variant-selector.html +cuda_core/docs/source/conduct.md +cuda_core/docs/source/install.md +cuda_core/docs/versions.json +cuda_core/tests/conftest.py +cuda_core/tests/cython/build_tests.sh +cuda_core/tests/example_tests/__init__.py +cuda_core/tests/example_tests/test_basic_examples.py +cuda_core/tests/example_tests/utils.py +cuda_core/tests/requirements-cu11.txt +cuda_core/tests/requirements-cu12.txt +cuda_core/tests/test_context.py +cuda_core/tests/test_device.py +cuda_core/tests/test_event.py +cuda_core/tests/test_launcher.py +cuda_core/tests/test_memory.py +cuda_core/tests/test_module.py +cuda_core/tests/test_stream.py +cuda_core/tests/test_system.py +cuda_python/LICENSE +cuda_python/docs/Makefile +cuda_python/docs/README.md +cuda_python/docs/build_all_docs.sh +cuda_python/docs/build_docs.sh +cuda_python/docs/environment-docs.yml +cuda_python/docs/source/_static/javascripts/version_dropdown.js +cuda_python/docs/source/_static/logo-dark-mode.png +cuda_python/docs/source/_static/logo-light-mode.png +cuda_python/docs/source/_templates/main.html +cuda_python/docs/source/_templates/sidebar/variant-selector.html +cuda_python/docs/source/conf.py +cuda_python/docs/source/release.md +cuda_python/docs/source/release/11.8.6-notes.md +cuda_python/docs/source/release/12.6.1-notes.md +cuda_python/docs/source/release/12.6.2-notes.md +cuda_python/docs/source/release/12.8.0-notes.md +cuda_python/docs/versions.json diff --git a/toolshed/check_spdx.py b/toolshed/check_spdx.py new file mode 100755 index 000000000..50c5e2f6a --- /dev/null +++ b/toolshed/check_spdx.py @@ -0,0 +1,50 @@ +#!/usr/bin/env python3 + +# Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: Apache-2.0 + +import os +import sys + +# Intentionally puzzling together EXPECTED_SPDX_STR so that we don't overlook +# if the identifier is missing in this file. +EXPECTED_SPDX_STR = "-".join(("SPDX", "License", "Identifier: ")) +EXPECTED_SPDX_BYTES = EXPECTED_SPDX_STR.encode() + +SPDX_IGNORE_FILENAME = ".spdx-ignore" + + +def load_spdx_ignore(): + if not os.path.exists(SPDX_IGNORE_FILENAME): + return set() + lines = [] + with open(SPDX_IGNORE_FILENAME, "r", encoding="utf-8") as f: + for line in f.read().splitlines(): + if not line.startswith("#"): + lines.append(line) + ignore_set = set(lines) + ignore_set.add(SPDX_IGNORE_FILENAME) + return ignore_set + + +def has_spdx(filepath): + with open(filepath, "rb") as f: + blob = f.read() + return EXPECTED_SPDX_BYTES in blob + + +def main(args): + assert args, "filepaths expected to be passed from pre-commit" + + ignore_set = load_spdx_ignore() + + returncode = 0 + for filepath in args: + if not has_spdx(filepath) and filepath not in ignore_set: + print(f"MISSING {EXPECTED_SPDX_STR} {filepath!r}") + returncode = 1 + return returncode + + +if __name__ == "__main__": + sys.exit(main(sys.argv[1:])) From 56fc03e8494575cf24444abbc40691fa8c8da089 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 13:41:45 -0700 Subject: [PATCH 02/15] Use pathspec.PathSpec.from_lines("gitwildmatch", ...) to ignore all .md files. --- .pre-commit-config.yaml | 6 +++-- .spdx-ignore | 50 +---------------------------------------- toolshed/check_spdx.py | 25 +++++++++------------ 3 files changed, 16 insertions(+), 65 deletions(-) mode change 100755 => 100644 toolshed/check_spdx.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95a1e7805..4eeaf11c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,8 +24,10 @@ repos: hooks: - id: check-spdx name: Check SPDX-License-Identifier - entry: ./toolshed/check_spdx.py - language: system + entry: python ./toolshed/check_spdx.py + language: python + additional_dependencies: + - pathspec - repo: https://github.com/PyCQA/bandit rev: 8ff25e07e487f143571cc305e56dd0253c60bc7b #v1.8.3 diff --git a/.spdx-ignore b/.spdx-ignore index f983c0f65..b1a36c69c 100644 --- a/.spdx-ignore +++ b/.spdx-ignore @@ -1,17 +1,11 @@ -# Cleanup hint: tail -n +2 .spdx-ignore | LC_ALL=C sort | uniq +*.md .gitattributes .github/BACKPORT_BRANCH -.github/PULL_REQUEST_TEMPLATE.md .github/copy-pr-bot.yaml .gitignore -CONTRIBUTING.md -LICENSE.md -README.md -SECURITY.md ci/versions.json cuda_bindings/LICENSE cuda_bindings/MANIFEST.in -cuda_bindings/README.md cuda_bindings/benchmarks/conftest.py cuda_bindings/benchmarks/kernels.py cuda_bindings/benchmarks/pytest.ini @@ -46,7 +40,6 @@ cuda_bindings/cuda/bindings/_lib/param_packer.h cuda_bindings/cuda/bindings/_lib/param_packer.pxd cuda_bindings/cuda/bindings/_lib/utils.pxd.in cuda_bindings/cuda/bindings/_lib/utils.pyx.in -cuda_bindings/cuda/bindings/_path_finder/README.md cuda_bindings/cuda/bindings/_version.py cuda_bindings/cuda/bindings/cydriver.pxd.in cuda_bindings/cuda/bindings/cydriver.pyx.in @@ -72,7 +65,6 @@ cuda_bindings/cuda/cuda.pyx cuda_bindings/cuda/cudart.pyx cuda_bindings/cuda/nvrtc.pyx cuda_bindings/docs/Makefile -cuda_bindings/docs/README.md cuda_bindings/docs/build_docs.sh cuda_bindings/docs/make.bat cuda_bindings/docs/source/_static/images/Nsight-Compute-CLI-625x473.png @@ -81,37 +73,7 @@ cuda_bindings/docs/source/_static/logo-dark-mode.png cuda_bindings/docs/source/_static/logo-light-mode.png cuda_bindings/docs/source/_templates/main.html cuda_bindings/docs/source/_templates/sidebar/variant-selector.html -cuda_bindings/docs/source/conduct.md cuda_bindings/docs/source/conf.py -cuda_bindings/docs/source/contribute.md -cuda_bindings/docs/source/environment_variables.md -cuda_bindings/docs/source/install.md -cuda_bindings/docs/source/motivation.md -cuda_bindings/docs/source/overview.md -cuda_bindings/docs/source/release/11.4.0-notes.md -cuda_bindings/docs/source/release/11.5.0-notes.md -cuda_bindings/docs/source/release/11.6.0-notes.md -cuda_bindings/docs/source/release/11.6.1-notes.md -cuda_bindings/docs/source/release/11.7.0-notes.md -cuda_bindings/docs/source/release/11.7.1-notes.md -cuda_bindings/docs/source/release/11.8.0-notes.md -cuda_bindings/docs/source/release/11.8.1-notes.md -cuda_bindings/docs/source/release/11.8.2-notes.md -cuda_bindings/docs/source/release/11.8.3-notes.md -cuda_bindings/docs/source/release/11.8.4-notes.md -cuda_bindings/docs/source/release/11.8.5-notes.md -cuda_bindings/docs/source/release/11.8.6-notes.md -cuda_bindings/docs/source/release/12.0.0-notes.md -cuda_bindings/docs/source/release/12.1.0-notes.md -cuda_bindings/docs/source/release/12.2.0-notes.md -cuda_bindings/docs/source/release/12.2.1-notes.md -cuda_bindings/docs/source/release/12.3.0-notes.md -cuda_bindings/docs/source/release/12.4.0-notes.md -cuda_bindings/docs/source/release/12.5.0-notes.md -cuda_bindings/docs/source/release/12.6.0-notes.md -cuda_bindings/docs/source/release/12.6.1-notes.md -cuda_bindings/docs/source/release/12.6.2-notes.md -cuda_bindings/docs/source/release/12.8.0-notes.md cuda_bindings/docs/versions.json cuda_bindings/examples/0_Introduction/clock_nvrtc_test.py cuda_bindings/examples/0_Introduction/simpleCubemapTexture_test.py @@ -147,19 +109,15 @@ cuda_bindings/tests/test_interoperability.py cuda_bindings/tests/test_kernelParams.py cuda_bindings/tests/test_nvrtc.py cuda_core/LICENSE -cuda_core/README.md cuda_core/cuda/core/__init__.pxd cuda_core/cuda/core/experimental/dlpack.h cuda_core/docs/Makefile -cuda_core/docs/README.md cuda_core/docs/build_docs.sh cuda_core/docs/source/_static/javascripts/version_dropdown.js cuda_core/docs/source/_static/logo-dark-mode.png cuda_core/docs/source/_static/logo-light-mode.png cuda_core/docs/source/_templates/main.html cuda_core/docs/source/_templates/sidebar/variant-selector.html -cuda_core/docs/source/conduct.md -cuda_core/docs/source/install.md cuda_core/docs/versions.json cuda_core/tests/conftest.py cuda_core/tests/cython/build_tests.sh @@ -178,7 +136,6 @@ cuda_core/tests/test_stream.py cuda_core/tests/test_system.py cuda_python/LICENSE cuda_python/docs/Makefile -cuda_python/docs/README.md cuda_python/docs/build_all_docs.sh cuda_python/docs/build_docs.sh cuda_python/docs/environment-docs.yml @@ -188,9 +145,4 @@ cuda_python/docs/source/_static/logo-light-mode.png cuda_python/docs/source/_templates/main.html cuda_python/docs/source/_templates/sidebar/variant-selector.html cuda_python/docs/source/conf.py -cuda_python/docs/source/release.md -cuda_python/docs/source/release/11.8.6-notes.md -cuda_python/docs/source/release/12.6.1-notes.md -cuda_python/docs/source/release/12.6.2-notes.md -cuda_python/docs/source/release/12.8.0-notes.md cuda_python/docs/versions.json diff --git a/toolshed/check_spdx.py b/toolshed/check_spdx.py old mode 100755 new mode 100644 index 50c5e2f6a..fb5b2ea26 --- a/toolshed/check_spdx.py +++ b/toolshed/check_spdx.py @@ -1,11 +1,11 @@ -#!/usr/bin/env python3 - # Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. # SPDX-License-Identifier: Apache-2.0 import os import sys +import pathspec + # Intentionally puzzling together EXPECTED_SPDX_STR so that we don't overlook # if the identifier is missing in this file. EXPECTED_SPDX_STR = "-".join(("SPDX", "License", "Identifier: ")) @@ -15,16 +15,13 @@ def load_spdx_ignore(): - if not os.path.exists(SPDX_IGNORE_FILENAME): - return set() - lines = [] - with open(SPDX_IGNORE_FILENAME, "r", encoding="utf-8") as f: - for line in f.read().splitlines(): - if not line.startswith("#"): - lines.append(line) - ignore_set = set(lines) - ignore_set.add(SPDX_IGNORE_FILENAME) - return ignore_set + if os.path.exists(SPDX_IGNORE_FILENAME): + with open(SPDX_IGNORE_FILENAME, "r", encoding="utf-8") as f: + lines = f.readlines() + else: + lines = [] + lines.append(SPDX_IGNORE_FILENAME + "\n") + return pathspec.PathSpec.from_lines("gitwildmatch", lines) def has_spdx(filepath): @@ -36,11 +33,11 @@ def has_spdx(filepath): def main(args): assert args, "filepaths expected to be passed from pre-commit" - ignore_set = load_spdx_ignore() + ignore_spec = load_spdx_ignore() returncode = 0 for filepath in args: - if not has_spdx(filepath) and filepath not in ignore_set: + if not ignore_spec.match_file(filepath) and not has_spdx(filepath): print(f"MISSING {EXPECTED_SPDX_STR} {filepath!r}") returncode = 1 return returncode From 193fee1da644a0b39d7571ba4ace0a80aad1f647 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 13:58:17 -0700 Subject: [PATCH 03/15] Pull out most special files (e.g. LICENSE, vendored file) --- .spdx-ignore | 54 +++++++++++----------------------------------------- 1 file changed, 11 insertions(+), 43 deletions(-) diff --git a/.spdx-ignore b/.spdx-ignore index b1a36c69c..c7095f7a8 100644 --- a/.spdx-ignore +++ b/.spdx-ignore @@ -1,10 +1,18 @@ +LICENSE +*.html +*.json *.md +*.png .gitattributes +.gitignore .github/BACKPORT_BRANCH +requirements*.txt +cuda_bindings/examples/* + +# Vendored +cuda_core/cuda/core/experimental/dlpack.h + .github/copy-pr-bot.yaml -.gitignore -ci/versions.json -cuda_bindings/LICENSE cuda_bindings/MANIFEST.in cuda_bindings/benchmarks/conftest.py cuda_bindings/benchmarks/kernels.py @@ -67,33 +75,8 @@ cuda_bindings/cuda/nvrtc.pyx cuda_bindings/docs/Makefile cuda_bindings/docs/build_docs.sh cuda_bindings/docs/make.bat -cuda_bindings/docs/source/_static/images/Nsight-Compute-CLI-625x473.png cuda_bindings/docs/source/_static/javascripts/version_dropdown.js -cuda_bindings/docs/source/_static/logo-dark-mode.png -cuda_bindings/docs/source/_static/logo-light-mode.png -cuda_bindings/docs/source/_templates/main.html -cuda_bindings/docs/source/_templates/sidebar/variant-selector.html cuda_bindings/docs/source/conf.py -cuda_bindings/docs/versions.json -cuda_bindings/examples/0_Introduction/clock_nvrtc_test.py -cuda_bindings/examples/0_Introduction/simpleCubemapTexture_test.py -cuda_bindings/examples/0_Introduction/simpleP2P_test.py -cuda_bindings/examples/0_Introduction/simpleZeroCopy_test.py -cuda_bindings/examples/0_Introduction/systemWideAtomics_test.py -cuda_bindings/examples/0_Introduction/vectorAddDrv_test.py -cuda_bindings/examples/0_Introduction/vectorAddMMAP_test.py -cuda_bindings/examples/2_Concepts_and_Techniques/streamOrderedAllocation_test.py -cuda_bindings/examples/3_CUDA_Features/globalToShmemAsyncCopy_test.py -cuda_bindings/examples/3_CUDA_Features/simpleCudaGraphs_test.py -cuda_bindings/examples/4_CUDA_Libraries/conjugateGradientMultiBlockCG_test.py -cuda_bindings/examples/common/common.py -cuda_bindings/examples/common/helper_cuda.py -cuda_bindings/examples/common/helper_string.py -cuda_bindings/examples/extra/isoFDModelling_test.py -cuda_bindings/examples/extra/jit_program_test.py -cuda_bindings/examples/extra/numba_emm_plugin.py -cuda_bindings/examples/pytest.ini -cuda_bindings/requirements.txt cuda_bindings/site-packages/_cuda_bindings_redirector.pth cuda_bindings/site-packages/_cuda_bindings_redirector.py cuda_bindings/tests/cython/build_tests.bat @@ -108,24 +91,15 @@ cuda_bindings/tests/test_cudart.py cuda_bindings/tests/test_interoperability.py cuda_bindings/tests/test_kernelParams.py cuda_bindings/tests/test_nvrtc.py -cuda_core/LICENSE cuda_core/cuda/core/__init__.pxd -cuda_core/cuda/core/experimental/dlpack.h cuda_core/docs/Makefile cuda_core/docs/build_docs.sh cuda_core/docs/source/_static/javascripts/version_dropdown.js -cuda_core/docs/source/_static/logo-dark-mode.png -cuda_core/docs/source/_static/logo-light-mode.png -cuda_core/docs/source/_templates/main.html -cuda_core/docs/source/_templates/sidebar/variant-selector.html -cuda_core/docs/versions.json cuda_core/tests/conftest.py cuda_core/tests/cython/build_tests.sh cuda_core/tests/example_tests/__init__.py cuda_core/tests/example_tests/test_basic_examples.py cuda_core/tests/example_tests/utils.py -cuda_core/tests/requirements-cu11.txt -cuda_core/tests/requirements-cu12.txt cuda_core/tests/test_context.py cuda_core/tests/test_device.py cuda_core/tests/test_event.py @@ -134,15 +108,9 @@ cuda_core/tests/test_memory.py cuda_core/tests/test_module.py cuda_core/tests/test_stream.py cuda_core/tests/test_system.py -cuda_python/LICENSE cuda_python/docs/Makefile cuda_python/docs/build_all_docs.sh cuda_python/docs/build_docs.sh cuda_python/docs/environment-docs.yml cuda_python/docs/source/_static/javascripts/version_dropdown.js -cuda_python/docs/source/_static/logo-dark-mode.png -cuda_python/docs/source/_static/logo-light-mode.png -cuda_python/docs/source/_templates/main.html -cuda_python/docs/source/_templates/sidebar/variant-selector.html cuda_python/docs/source/conf.py -cuda_python/docs/versions.json From ca75900d753493283552233586a0a3fe332053c2 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 14:20:24 -0700 Subject: [PATCH 04/15] =?UTF-8?q?Change=20has=5Fspdx()=20=E2=86=92=20has?= =?UTF-8?q?=5Fspdx=5For=5Fis=5Fempty()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- toolshed/check_spdx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolshed/check_spdx.py b/toolshed/check_spdx.py index fb5b2ea26..2b640b6e4 100644 --- a/toolshed/check_spdx.py +++ b/toolshed/check_spdx.py @@ -24,10 +24,10 @@ def load_spdx_ignore(): return pathspec.PathSpec.from_lines("gitwildmatch", lines) -def has_spdx(filepath): +def has_spdx_or_is_empty(filepath): with open(filepath, "rb") as f: blob = f.read() - return EXPECTED_SPDX_BYTES in blob + return len(blob.strip()) == 0 or EXPECTED_SPDX_BYTES in blob def main(args): @@ -37,7 +37,7 @@ def main(args): returncode = 0 for filepath in args: - if not ignore_spec.match_file(filepath) and not has_spdx(filepath): + if not ignore_spec.match_file(filepath) and not has_spdx_or_is_empty(filepath): print(f"MISSING {EXPECTED_SPDX_STR} {filepath!r}") returncode = 1 return returncode From dfd52b3524a7173a73beaf264e55eae3efd62493 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 14:21:05 -0700 Subject: [PATCH 05/15] Add missing SPDX-License-Identifier lines in *.py files. --- .spdx-ignore | 33 ------------------- cuda_bindings/benchmarks/conftest.py | 1 + cuda_bindings/benchmarks/kernels.py | 1 + cuda_bindings/benchmarks/test_cupy.py | 1 + .../benchmarks/test_launch_latency.py | 1 + cuda_bindings/benchmarks/test_numba.py | 1 + .../benchmarks/test_pointer_attributes.py | 1 + cuda_bindings/cuda/bindings/__init__.py | 7 +--- cuda_bindings/cuda/bindings/_version.py | 1 + cuda_bindings/docs/source/conf.py | 3 ++ .../_cuda_bindings_redirector.py | 1 + cuda_bindings/tests/cython/test_cython.py | 1 + cuda_bindings/tests/test_cuda.py | 1 + cuda_bindings/tests/test_cudart.py | 1 + cuda_bindings/tests/test_interoperability.py | 1 + cuda_bindings/tests/test_kernelParams.py | 1 + cuda_bindings/tests/test_nvrtc.py | 1 + cuda_core/tests/conftest.py | 1 + .../example_tests/test_basic_examples.py | 1 + cuda_core/tests/example_tests/utils.py | 1 + cuda_core/tests/test_context.py | 1 + cuda_core/tests/test_device.py | 1 + cuda_core/tests/test_event.py | 1 + cuda_core/tests/test_launcher.py | 1 + cuda_core/tests/test_memory.py | 1 + cuda_core/tests/test_module.py | 1 + cuda_core/tests/test_stream.py | 1 + cuda_core/tests/test_system.py | 3 ++ cuda_python/docs/source/conf.py | 3 ++ 29 files changed, 34 insertions(+), 39 deletions(-) diff --git a/.spdx-ignore b/.spdx-ignore index c7095f7a8..84214407a 100644 --- a/.spdx-ignore +++ b/.spdx-ignore @@ -14,16 +14,8 @@ cuda_core/cuda/core/experimental/dlpack.h .github/copy-pr-bot.yaml cuda_bindings/MANIFEST.in -cuda_bindings/benchmarks/conftest.py -cuda_bindings/benchmarks/kernels.py cuda_bindings/benchmarks/pytest.ini -cuda_bindings/benchmarks/test_cupy.py -cuda_bindings/benchmarks/test_launch_latency.py -cuda_bindings/benchmarks/test_numba.py -cuda_bindings/benchmarks/test_pointer_attributes.py cuda_bindings/cuda/bindings/__init__.pxd -cuda_bindings/cuda/bindings/__init__.py -cuda_bindings/cuda/bindings/_bindings/__init__.py cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in @@ -35,9 +27,6 @@ cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in cuda_bindings/cuda/bindings/_bindings/loader.cpp cuda_bindings/cuda/bindings/_bindings/loader.h cuda_bindings/cuda/bindings/_bindings/loader.pxd -cuda_bindings/cuda/bindings/_internal/__init__.py -cuda_bindings/cuda/bindings/_lib/__init__.py -cuda_bindings/cuda/bindings/_lib/cyruntime/__init__.py cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in @@ -48,7 +37,6 @@ cuda_bindings/cuda/bindings/_lib/param_packer.h cuda_bindings/cuda/bindings/_lib/param_packer.pxd cuda_bindings/cuda/bindings/_lib/utils.pxd.in cuda_bindings/cuda/bindings/_lib/utils.pyx.in -cuda_bindings/cuda/bindings/_version.py cuda_bindings/cuda/bindings/cydriver.pxd.in cuda_bindings/cuda/bindings/cydriver.pyx.in cuda_bindings/cuda/bindings/cynvrtc.pxd.in @@ -76,41 +64,20 @@ cuda_bindings/docs/Makefile cuda_bindings/docs/build_docs.sh cuda_bindings/docs/make.bat cuda_bindings/docs/source/_static/javascripts/version_dropdown.js -cuda_bindings/docs/source/conf.py cuda_bindings/site-packages/_cuda_bindings_redirector.pth -cuda_bindings/site-packages/_cuda_bindings_redirector.py cuda_bindings/tests/cython/build_tests.bat cuda_bindings/tests/cython/build_tests.sh cuda_bindings/tests/cython/test_ccuda.pyx cuda_bindings/tests/cython/test_ccudart.pyx -cuda_bindings/tests/cython/test_cython.py cuda_bindings/tests/cython/test_interoperability_cython.pyx cuda_bindings/tests/pytest.ini -cuda_bindings/tests/test_cuda.py -cuda_bindings/tests/test_cudart.py -cuda_bindings/tests/test_interoperability.py -cuda_bindings/tests/test_kernelParams.py -cuda_bindings/tests/test_nvrtc.py cuda_core/cuda/core/__init__.pxd cuda_core/docs/Makefile cuda_core/docs/build_docs.sh cuda_core/docs/source/_static/javascripts/version_dropdown.js -cuda_core/tests/conftest.py cuda_core/tests/cython/build_tests.sh -cuda_core/tests/example_tests/__init__.py -cuda_core/tests/example_tests/test_basic_examples.py -cuda_core/tests/example_tests/utils.py -cuda_core/tests/test_context.py -cuda_core/tests/test_device.py -cuda_core/tests/test_event.py -cuda_core/tests/test_launcher.py -cuda_core/tests/test_memory.py -cuda_core/tests/test_module.py -cuda_core/tests/test_stream.py -cuda_core/tests/test_system.py cuda_python/docs/Makefile cuda_python/docs/build_all_docs.sh cuda_python/docs/build_docs.sh cuda_python/docs/environment-docs.yml cuda_python/docs/source/_static/javascripts/version_dropdown.js -cuda_python/docs/source/conf.py diff --git a/cuda_bindings/benchmarks/conftest.py b/cuda_bindings/benchmarks/conftest.py index e1d72d26d..a8b74180c 100644 --- a/cuda_bindings/benchmarks/conftest.py +++ b/cuda_bindings/benchmarks/conftest.py @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/benchmarks/kernels.py b/cuda_bindings/benchmarks/kernels.py index 119727b2d..ea59ccbfe 100644 --- a/cuda_bindings/benchmarks/kernels.py +++ b/cuda_bindings/benchmarks/kernels.py @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/benchmarks/test_cupy.py b/cuda_bindings/benchmarks/test_cupy.py index 68fdd9831..cd43faf29 100644 --- a/cuda_bindings/benchmarks/test_cupy.py +++ b/cuda_bindings/benchmarks/test_cupy.py @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/benchmarks/test_launch_latency.py b/cuda_bindings/benchmarks/test_launch_latency.py index 7af5f84cc..f8d28f3ac 100755 --- a/cuda_bindings/benchmarks/test_launch_latency.py +++ b/cuda_bindings/benchmarks/test_launch_latency.py @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/benchmarks/test_numba.py b/cuda_bindings/benchmarks/test_numba.py index 36361d351..7cbd84bcc 100644 --- a/cuda_bindings/benchmarks/test_numba.py +++ b/cuda_bindings/benchmarks/test_numba.py @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/benchmarks/test_pointer_attributes.py b/cuda_bindings/benchmarks/test_pointer_attributes.py index 5c9dbc2b6..e54997ff5 100644 --- a/cuda_bindings/benchmarks/test_pointer_attributes.py +++ b/cuda_bindings/benchmarks/test_pointer_attributes.py @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/__init__.py b/cuda_bindings/cuda/bindings/__init__.py index 2bde5f72e..8086b4f6f 100644 --- a/cuda_bindings/cuda/bindings/__init__.py +++ b/cuda_bindings/cuda/bindings/__init__.py @@ -1,9 +1,4 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE from cuda.bindings._version import __version__ diff --git a/cuda_bindings/cuda/bindings/_version.py b/cuda_bindings/cuda/bindings/_version.py index 293274d14..29d77383f 100644 --- a/cuda_bindings/cuda/bindings/_version.py +++ b/cuda_bindings/cuda/bindings/_version.py @@ -1,4 +1,5 @@ # Copyright 2024-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/docs/source/conf.py b/cuda_bindings/docs/source/conf.py index 5ea8b4443..699bb28ad 100644 --- a/cuda_bindings/docs/source/conf.py +++ b/cuda_bindings/docs/source/conf.py @@ -1,3 +1,6 @@ +# Copyright (c) 2012-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full diff --git a/cuda_bindings/site-packages/_cuda_bindings_redirector.py b/cuda_bindings/site-packages/_cuda_bindings_redirector.py index c5e7a144a..af8706ff6 100644 --- a/cuda_bindings/site-packages/_cuda_bindings_redirector.py +++ b/cuda_bindings/site-packages/_cuda_bindings_redirector.py @@ -1,4 +1,5 @@ # Copyright 2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE import sys from types import ModuleType diff --git a/cuda_bindings/tests/cython/test_cython.py b/cuda_bindings/tests/cython/test_cython.py index ed5069219..91242df42 100644 --- a/cuda_bindings/tests/cython/test_cython.py +++ b/cuda_bindings/tests/cython/test_cython.py @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/tests/test_cuda.py b/cuda_bindings/tests/test_cuda.py index 8d8443e88..e35b72d3e 100644 --- a/cuda_bindings/tests/test_cuda.py +++ b/cuda_bindings/tests/test_cuda.py @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/tests/test_cudart.py b/cuda_bindings/tests/test_cudart.py index f7eb1abb9..3c0c72dc2 100644 --- a/cuda_bindings/tests/test_cudart.py +++ b/cuda_bindings/tests/test_cudart.py @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/tests/test_interoperability.py b/cuda_bindings/tests/test_interoperability.py index 998535992..269e6129a 100644 --- a/cuda_bindings/tests/test_interoperability.py +++ b/cuda_bindings/tests/test_interoperability.py @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/tests/test_kernelParams.py b/cuda_bindings/tests/test_kernelParams.py index c45bf46ab..a26ff64fd 100644 --- a/cuda_bindings/tests/test_kernelParams.py +++ b/cuda_bindings/tests/test_kernelParams.py @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/tests/test_nvrtc.py b/cuda_bindings/tests/test_nvrtc.py index 013d75f72..4bb711f00 100644 --- a/cuda_bindings/tests/test_nvrtc.py +++ b/cuda_bindings/tests/test_nvrtc.py @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/conftest.py b/cuda_core/tests/conftest.py index 23bb0274e..ffbaf0dc4 100644 --- a/cuda_core/tests/conftest.py +++ b/cuda_core/tests/conftest.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/example_tests/test_basic_examples.py b/cuda_core/tests/example_tests/test_basic_examples.py index f085e3c61..063f77135 100644 --- a/cuda_core/tests/example_tests/test_basic_examples.py +++ b/cuda_core/tests/example_tests/test_basic_examples.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/example_tests/utils.py b/cuda_core/tests/example_tests/utils.py index 229851a2f..996b2d7ee 100644 --- a/cuda_core/tests/example_tests/utils.py +++ b/cuda_core/tests/example_tests/utils.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/test_context.py b/cuda_core/tests/test_context.py index c907b19cf..f52c3b0b2 100644 --- a/cuda_core/tests/test_context.py +++ b/cuda_core/tests/test_context.py @@ -1,4 +1,5 @@ # Copyright 2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/test_device.py b/cuda_core/tests/test_device.py index 3fed6c32a..2e929253d 100644 --- a/cuda_core/tests/test_device.py +++ b/cuda_core/tests/test_device.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/test_event.py b/cuda_core/tests/test_event.py index f568ecdba..aa77fd811 100644 --- a/cuda_core/tests/test_event.py +++ b/cuda_core/tests/test_event.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/test_launcher.py b/cuda_core/tests/test_launcher.py index 43fc9e5fa..97ddd0d34 100644 --- a/cuda_core/tests/test_launcher.py +++ b/cuda_core/tests/test_launcher.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 1ff728c64..e8ce3e6a5 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/test_module.py b/cuda_core/tests/test_module.py index 608ee03bb..2f8bde8ff 100644 --- a/cuda_core/tests/test_module.py +++ b/cuda_core/tests/test_module.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/test_stream.py b/cuda_core/tests/test_stream.py index 11cf02fa4..708724c39 100644 --- a/cuda_core/tests/test_stream.py +++ b/cuda_core/tests/test_stream.py @@ -1,4 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_core/tests/test_system.py b/cuda_core/tests/test_system.py index e8d3d8355..1640856c2 100644 --- a/cuda_core/tests/test_system.py +++ b/cuda_core/tests/test_system.py @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: Apache-2.0 + try: from cuda.bindings import driver, runtime except ImportError: diff --git a/cuda_python/docs/source/conf.py b/cuda_python/docs/source/conf.py index fe6e934dc..78791993a 100644 --- a/cuda_python/docs/source/conf.py +++ b/cuda_python/docs/source/conf.py @@ -1,3 +1,6 @@ +# Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full From 5a74980febb4c9c66f6ffa0743d2e40c534896d6 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 14:33:48 -0700 Subject: [PATCH 06/15] Add missing SPDX-License-Identifier lines in all files outside cuda_bindings/. --- .github/copy-pr-bot.yaml | 3 +++ .spdx-ignore | 12 ------------ cuda_core/docs/Makefile | 3 +++ cuda_core/docs/build_docs.sh | 3 +++ .../source/_static/javascripts/version_dropdown.js | 3 +++ cuda_core/tests/cython/build_tests.sh | 3 +++ cuda_python/docs/Makefile | 3 +++ cuda_python/docs/build_all_docs.sh | 3 +++ cuda_python/docs/build_docs.sh | 3 +++ cuda_python/docs/environment-docs.yml | 3 +++ .../source/_static/javascripts/version_dropdown.js | 3 +++ 11 files changed, 30 insertions(+), 12 deletions(-) diff --git a/.github/copy-pr-bot.yaml b/.github/copy-pr-bot.yaml index 2771228b7..1c459569a 100644 --- a/.github/copy-pr-bot.yaml +++ b/.github/copy-pr-bot.yaml @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: Apache-2.0 + # Configuration file for `copy-pr-bot` GitHub App # https://docs.gha-runners.nvidia.com/apps/copy-pr-bot/ diff --git a/.spdx-ignore b/.spdx-ignore index 84214407a..3240217e6 100644 --- a/.spdx-ignore +++ b/.spdx-ignore @@ -12,10 +12,8 @@ cuda_bindings/examples/* # Vendored cuda_core/cuda/core/experimental/dlpack.h -.github/copy-pr-bot.yaml cuda_bindings/MANIFEST.in cuda_bindings/benchmarks/pytest.ini -cuda_bindings/cuda/bindings/__init__.pxd cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in @@ -71,13 +69,3 @@ cuda_bindings/tests/cython/test_ccuda.pyx cuda_bindings/tests/cython/test_ccudart.pyx cuda_bindings/tests/cython/test_interoperability_cython.pyx cuda_bindings/tests/pytest.ini -cuda_core/cuda/core/__init__.pxd -cuda_core/docs/Makefile -cuda_core/docs/build_docs.sh -cuda_core/docs/source/_static/javascripts/version_dropdown.js -cuda_core/tests/cython/build_tests.sh -cuda_python/docs/Makefile -cuda_python/docs/build_all_docs.sh -cuda_python/docs/build_docs.sh -cuda_python/docs/environment-docs.yml -cuda_python/docs/source/_static/javascripts/version_dropdown.js diff --git a/cuda_core/docs/Makefile b/cuda_core/docs/Makefile index 3f1222e89..12fea39af 100644 --- a/cuda_core/docs/Makefile +++ b/cuda_core/docs/Makefile @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: Apache-2.0 + # Minimal makefile for Sphinx documentation # diff --git a/cuda_core/docs/build_docs.sh b/cuda_core/docs/build_docs.sh index 2262278c9..a2cde9df9 100755 --- a/cuda_core/docs/build_docs.sh +++ b/cuda_core/docs/build_docs.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: Apache-2.0 + set -ex if [[ "$#" == "0" ]]; then diff --git a/cuda_core/docs/source/_static/javascripts/version_dropdown.js b/cuda_core/docs/source/_static/javascripts/version_dropdown.js index 29860a8f8..d9c633cf9 100644 --- a/cuda_core/docs/source/_static/javascripts/version_dropdown.js +++ b/cuda_core/docs/source/_static/javascripts/version_dropdown.js @@ -1,3 +1,6 @@ +// Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +// SPDX-License-Identifier: Apache-2.0 + function change_current_version(event) { event.preventDefault(); diff --git a/cuda_core/tests/cython/build_tests.sh b/cuda_core/tests/cython/build_tests.sh index d85ccec77..3ffe61ef7 100755 --- a/cuda_core/tests/cython/build_tests.sh +++ b/cuda_core/tests/cython/build_tests.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: Apache-2.0 + SCRIPTPATH=$(dirname $(realpath "$0")) CPLUS_INCLUDE_PATH=$SCRIPTPATH/../../cuda/core/experimental/include:$CUDA_HOME/include:$CPLUS_INCLUDE_PATH cythonize -3 -i $(dirname "$0")/test_*.pyx diff --git a/cuda_python/docs/Makefile b/cuda_python/docs/Makefile index a84f57039..269a54137 100644 --- a/cuda_python/docs/Makefile +++ b/cuda_python/docs/Makefile @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + # Minimal makefile for Sphinx documentation # diff --git a/cuda_python/docs/build_all_docs.sh b/cuda_python/docs/build_all_docs.sh index 733ae1bc8..b7bc4b2f7 100755 --- a/cuda_python/docs/build_all_docs.sh +++ b/cuda_python/docs/build_all_docs.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + set -ex # build cuda-python docs diff --git a/cuda_python/docs/build_docs.sh b/cuda_python/docs/build_docs.sh index b5244391f..65501bbfa 100755 --- a/cuda_python/docs/build_docs.sh +++ b/cuda_python/docs/build_docs.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + set -ex if [[ "$#" == "0" ]]; then diff --git a/cuda_python/docs/environment-docs.yml b/cuda_python/docs/environment-docs.yml index e285c3bd5..01abb5ea5 100644 --- a/cuda_python/docs/environment-docs.yml +++ b/cuda_python/docs/environment-docs.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + name: cuda-python-docs channels: - conda-forge diff --git a/cuda_python/docs/source/_static/javascripts/version_dropdown.js b/cuda_python/docs/source/_static/javascripts/version_dropdown.js index 29860a8f8..8d2d73e36 100644 --- a/cuda_python/docs/source/_static/javascripts/version_dropdown.js +++ b/cuda_python/docs/source/_static/javascripts/version_dropdown.js @@ -1,3 +1,6 @@ +// Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + function change_current_version(event) { event.preventDefault(); From 7635cbce2036239dca0c3431842730769e9ab790 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 15:00:44 -0700 Subject: [PATCH 07/15] Add missing Copyright (and SPDX-License-Identifier) lines under cuda_bindings/ --- cuda_bindings/MANIFEST.in | 3 +++ cuda_bindings/benchmarks/pytest.ini | 3 +++ cuda_bindings/cuda/ccuda.pxd | 3 +++ cuda_bindings/cuda/ccuda.pyx | 3 +++ cuda_bindings/cuda/ccudart.pxd | 3 +++ cuda_bindings/cuda/ccudart.pyx | 3 +++ cuda_bindings/cuda/cnvrtc.pxd | 3 +++ cuda_bindings/cuda/cnvrtc.pyx | 3 +++ cuda_bindings/cuda/cuda.pyx | 3 +++ cuda_bindings/cuda/cudart.pyx | 3 +++ cuda_bindings/cuda/nvrtc.pyx | 3 +++ cuda_bindings/docs/Makefile | 3 +++ cuda_bindings/docs/build_docs.sh | 3 +++ cuda_bindings/docs/make.bat | 3 +++ .../docs/source/_static/javascripts/version_dropdown.js | 3 +++ cuda_bindings/site-packages/_cuda_bindings_redirector.pth | 3 +++ cuda_bindings/tests/cython/build_tests.bat | 4 ++++ cuda_bindings/tests/cython/build_tests.sh | 3 +++ cuda_bindings/tests/pytest.ini | 3 +++ 19 files changed, 58 insertions(+) diff --git a/cuda_bindings/MANIFEST.in b/cuda_bindings/MANIFEST.in index 9527072c8..b340c74ab 100644 --- a/cuda_bindings/MANIFEST.in +++ b/cuda_bindings/MANIFEST.in @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + recursive-include cuda/ *.pyx *.pxd *.pxi # at least with setuptools 75.0.0 this folder was added erroneously # to the payload, causing file copying to the build environment failed diff --git a/cuda_bindings/benchmarks/pytest.ini b/cuda_bindings/benchmarks/pytest.ini index a74acd3e2..d7b4769db 100644 --- a/cuda_bindings/benchmarks/pytest.ini +++ b/cuda_bindings/benchmarks/pytest.ini @@ -1,3 +1,6 @@ +# Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + [pytest] required_plugins = pytest-benchmark addopts = --benchmark-skip diff --git a/cuda_bindings/cuda/ccuda.pxd b/cuda_bindings/cuda/ccuda.pxd index 2a0f2672f..57a5f476f 100644 --- a/cuda_bindings/cuda/ccuda.pxd +++ b/cuda_bindings/cuda/ccuda.pxd @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + from cuda.bindings.cydriver cimport * cdef extern from *: diff --git a/cuda_bindings/cuda/ccuda.pyx b/cuda_bindings/cuda/ccuda.pyx index 0ad01d58f..187ed5746 100644 --- a/cuda_bindings/cuda/ccuda.pyx +++ b/cuda_bindings/cuda/ccuda.pyx @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + from cuda.bindings.cydriver cimport * from cuda.bindings import cydriver __pyx_capi__ = cydriver.__pyx_capi__ diff --git a/cuda_bindings/cuda/ccudart.pxd b/cuda_bindings/cuda/ccudart.pxd index f7c3def5d..46e121f10 100644 --- a/cuda_bindings/cuda/ccudart.pxd +++ b/cuda_bindings/cuda/ccudart.pxd @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + from cuda.bindings.cyruntime cimport * cdef extern from *: diff --git a/cuda_bindings/cuda/ccudart.pyx b/cuda_bindings/cuda/ccudart.pyx index 17b3c1ea8..e1a6d66d7 100644 --- a/cuda_bindings/cuda/ccudart.pyx +++ b/cuda_bindings/cuda/ccudart.pyx @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + from cuda.bindings.cyruntime cimport * from cuda.bindings import cyruntime __pyx_capi__ = cyruntime.__pyx_capi__ diff --git a/cuda_bindings/cuda/cnvrtc.pxd b/cuda_bindings/cuda/cnvrtc.pxd index ed8170713..5805b5ead 100644 --- a/cuda_bindings/cuda/cnvrtc.pxd +++ b/cuda_bindings/cuda/cnvrtc.pxd @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + from cuda.bindings.cynvrtc cimport * cdef extern from *: diff --git a/cuda_bindings/cuda/cnvrtc.pyx b/cuda_bindings/cuda/cnvrtc.pyx index 319512fa5..2fb4e05df 100644 --- a/cuda_bindings/cuda/cnvrtc.pyx +++ b/cuda_bindings/cuda/cnvrtc.pyx @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + from cuda.bindings.cynvrtc cimport * from cuda.bindings import cynvrtc __pyx_capi__ = cynvrtc.__pyx_capi__ diff --git a/cuda_bindings/cuda/cuda.pyx b/cuda_bindings/cuda/cuda.pyx index 981b62228..8d8228a92 100644 --- a/cuda_bindings/cuda/cuda.pyx +++ b/cuda_bindings/cuda/cuda.pyx @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + import warnings as _warnings from cuda.bindings.driver import * diff --git a/cuda_bindings/cuda/cudart.pyx b/cuda_bindings/cuda/cudart.pyx index e3d2986bb..9dc238047 100644 --- a/cuda_bindings/cuda/cudart.pyx +++ b/cuda_bindings/cuda/cudart.pyx @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + import warnings as _warnings from cuda.bindings.runtime import * diff --git a/cuda_bindings/cuda/nvrtc.pyx b/cuda_bindings/cuda/nvrtc.pyx index 09ff61b8c..8e1f1d7c3 100644 --- a/cuda_bindings/cuda/nvrtc.pyx +++ b/cuda_bindings/cuda/nvrtc.pyx @@ -1,3 +1,6 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + import warnings as _warnings from cuda.bindings.nvrtc import * diff --git a/cuda_bindings/docs/Makefile b/cuda_bindings/docs/Makefile index 75f2ef6c2..f03265caf 100644 --- a/cuda_bindings/docs/Makefile +++ b/cuda_bindings/docs/Makefile @@ -1,3 +1,6 @@ +# Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + # Minimal makefile for Sphinx documentation # diff --git a/cuda_bindings/docs/build_docs.sh b/cuda_bindings/docs/build_docs.sh index ffeece9da..1ed8bc6c5 100755 --- a/cuda_bindings/docs/build_docs.sh +++ b/cuda_bindings/docs/build_docs.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + set -ex if [[ "$#" == "0" ]]; then diff --git a/cuda_bindings/docs/make.bat b/cuda_bindings/docs/make.bat index 9534b0181..88e1803f4 100644 --- a/cuda_bindings/docs/make.bat +++ b/cuda_bindings/docs/make.bat @@ -1,5 +1,8 @@ @ECHO OFF +REM Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +REM SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + pushd %~dp0 REM Command file for Sphinx documentation diff --git a/cuda_bindings/docs/source/_static/javascripts/version_dropdown.js b/cuda_bindings/docs/source/_static/javascripts/version_dropdown.js index 29860a8f8..8d2d73e36 100644 --- a/cuda_bindings/docs/source/_static/javascripts/version_dropdown.js +++ b/cuda_bindings/docs/source/_static/javascripts/version_dropdown.js @@ -1,3 +1,6 @@ +// Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + function change_current_version(event) { event.preventDefault(); diff --git a/cuda_bindings/site-packages/_cuda_bindings_redirector.pth b/cuda_bindings/site-packages/_cuda_bindings_redirector.pth index c8a1ca9e6..bac967c92 100644 --- a/cuda_bindings/site-packages/_cuda_bindings_redirector.pth +++ b/cuda_bindings/site-packages/_cuda_bindings_redirector.pth @@ -1 +1,4 @@ +# Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + import _cuda_bindings_redirector diff --git a/cuda_bindings/tests/cython/build_tests.bat b/cuda_bindings/tests/cython/build_tests.bat index 69d157ca8..ac026268a 100644 --- a/cuda_bindings/tests/cython/build_tests.bat +++ b/cuda_bindings/tests/cython/build_tests.bat @@ -1,4 +1,8 @@ @echo off + +REM Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +REM SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + setlocal set CL=%CL% /I"%CUDA_HOME%\include" cythonize -3 -i %~dp0test_*.pyx diff --git a/cuda_bindings/tests/cython/build_tests.sh b/cuda_bindings/tests/cython/build_tests.sh index 82ef437c6..236151bfa 100755 --- a/cuda_bindings/tests/cython/build_tests.sh +++ b/cuda_bindings/tests/cython/build_tests.sh @@ -1,3 +1,6 @@ #!/bin/bash +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + CPLUS_INCLUDE_PATH=$CUDA_HOME/include:$CPLUS_INCLUDE_PATH cythonize -3 -i $(dirname "$0")/test_*.pyx diff --git a/cuda_bindings/tests/pytest.ini b/cuda_bindings/tests/pytest.ini index 76f66832c..e96583e68 100644 --- a/cuda_bindings/tests/pytest.ini +++ b/cuda_bindings/tests/pytest.ini @@ -1,2 +1,5 @@ +# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + [pytest] norecursedirs = cython From 85c641a77031e12a3a3d49d1f2ea840de9d66470 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 15:11:20 -0700 Subject: [PATCH 08/15] Remove stray space --- toolshed/check_spdx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolshed/check_spdx.py b/toolshed/check_spdx.py index 2b640b6e4..1b519cecc 100644 --- a/toolshed/check_spdx.py +++ b/toolshed/check_spdx.py @@ -38,7 +38,7 @@ def main(args): returncode = 0 for filepath in args: if not ignore_spec.match_file(filepath) and not has_spdx_or_is_empty(filepath): - print(f"MISSING {EXPECTED_SPDX_STR} {filepath!r}") + print(f"MISSING {EXPECTED_SPDX_STR}{filepath!r}") returncode = 1 return returncode From 71e7737070851d7582e4c62d8533fb3884cdea79 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 15:12:21 -0700 Subject: [PATCH 09/15] Add missing SPDX-License-Identifier lines in all files under cuda_bindings/. --- .spdx-ignore | 58 ------------------- .../cuda/bindings/_bindings/cydriver.pxd.in | 1 + .../cuda/bindings/_bindings/cydriver.pyx.in | 1 + .../cuda/bindings/_bindings/cynvrtc.pxd.in | 1 + .../cuda/bindings/_bindings/cynvrtc.pyx.in | 1 + .../cuda/bindings/_bindings/cyruntime.pxd.in | 1 + .../cuda/bindings/_bindings/cyruntime.pyx.in | 1 + .../bindings/_bindings/cyruntime_ptds.pxd.in | 1 + .../bindings/_bindings/cyruntime_ptds.pyx.in | 1 + .../cuda/bindings/_bindings/loader.cpp | 1 + .../cuda/bindings/_bindings/loader.h | 1 + .../cuda/bindings/_bindings/loader.pxd | 2 +- .../bindings/_lib/cyruntime/cyruntime.pxd.in | 1 + .../bindings/_lib/cyruntime/cyruntime.pyx.in | 1 + .../cuda/bindings/_lib/cyruntime/utils.pxd.in | 1 + .../cuda/bindings/_lib/cyruntime/utils.pyx.in | 1 + cuda_bindings/cuda/bindings/_lib/dlfcn.pxd | 3 +- .../cuda/bindings/_lib/param_packer.cpp | 1 + .../cuda/bindings/_lib/param_packer.h | 1 + .../cuda/bindings/_lib/param_packer.pxd | 1 + cuda_bindings/cuda/bindings/_lib/utils.pxd.in | 1 + cuda_bindings/cuda/bindings/_lib/utils.pyx.in | 1 + cuda_bindings/cuda/bindings/cydriver.pxd.in | 3 +- cuda_bindings/cuda/bindings/cydriver.pyx.in | 1 + cuda_bindings/cuda/bindings/cynvrtc.pxd.in | 1 + cuda_bindings/cuda/bindings/cynvrtc.pyx.in | 1 + cuda_bindings/cuda/bindings/cyruntime.pxd.in | 3 +- cuda_bindings/cuda/bindings/cyruntime.pyx.in | 1 + .../cuda/bindings/cyruntime_functions.pxi.in | 1 + .../cuda/bindings/cyruntime_types.pxi.in | 1 + cuda_bindings/cuda/bindings/driver.pxd.in | 1 + cuda_bindings/cuda/bindings/driver.pyx.in | 1 + cuda_bindings/cuda/bindings/nvrtc.pxd.in | 1 + cuda_bindings/cuda/bindings/nvrtc.pyx.in | 1 + cuda_bindings/cuda/bindings/runtime.pxd.in | 1 + cuda_bindings/cuda/bindings/runtime.pyx.in | 1 + cuda_bindings/tests/cython/test_ccuda.pyx | 1 + cuda_bindings/tests/cython/test_ccudart.pyx | 1 + .../cython/test_interoperability_cython.pyx | 1 + 39 files changed, 41 insertions(+), 62 deletions(-) diff --git a/.spdx-ignore b/.spdx-ignore index 3240217e6..60435ebb5 100644 --- a/.spdx-ignore +++ b/.spdx-ignore @@ -11,61 +11,3 @@ cuda_bindings/examples/* # Vendored cuda_core/cuda/core/experimental/dlpack.h - -cuda_bindings/MANIFEST.in -cuda_bindings/benchmarks/pytest.ini -cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in -cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in -cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in -cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in -cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in -cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in -cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in -cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in -cuda_bindings/cuda/bindings/_bindings/loader.cpp -cuda_bindings/cuda/bindings/_bindings/loader.h -cuda_bindings/cuda/bindings/_bindings/loader.pxd -cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in -cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in -cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in -cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in -cuda_bindings/cuda/bindings/_lib/dlfcn.pxd -cuda_bindings/cuda/bindings/_lib/param_packer.cpp -cuda_bindings/cuda/bindings/_lib/param_packer.h -cuda_bindings/cuda/bindings/_lib/param_packer.pxd -cuda_bindings/cuda/bindings/_lib/utils.pxd.in -cuda_bindings/cuda/bindings/_lib/utils.pyx.in -cuda_bindings/cuda/bindings/cydriver.pxd.in -cuda_bindings/cuda/bindings/cydriver.pyx.in -cuda_bindings/cuda/bindings/cynvrtc.pxd.in -cuda_bindings/cuda/bindings/cynvrtc.pyx.in -cuda_bindings/cuda/bindings/cyruntime.pxd.in -cuda_bindings/cuda/bindings/cyruntime.pyx.in -cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in -cuda_bindings/cuda/bindings/cyruntime_types.pxi.in -cuda_bindings/cuda/bindings/driver.pxd.in -cuda_bindings/cuda/bindings/driver.pyx.in -cuda_bindings/cuda/bindings/nvrtc.pxd.in -cuda_bindings/cuda/bindings/nvrtc.pyx.in -cuda_bindings/cuda/bindings/runtime.pxd.in -cuda_bindings/cuda/bindings/runtime.pyx.in -cuda_bindings/cuda/ccuda.pxd -cuda_bindings/cuda/ccuda.pyx -cuda_bindings/cuda/ccudart.pxd -cuda_bindings/cuda/ccudart.pyx -cuda_bindings/cuda/cnvrtc.pxd -cuda_bindings/cuda/cnvrtc.pyx -cuda_bindings/cuda/cuda.pyx -cuda_bindings/cuda/cudart.pyx -cuda_bindings/cuda/nvrtc.pyx -cuda_bindings/docs/Makefile -cuda_bindings/docs/build_docs.sh -cuda_bindings/docs/make.bat -cuda_bindings/docs/source/_static/javascripts/version_dropdown.js -cuda_bindings/site-packages/_cuda_bindings_redirector.pth -cuda_bindings/tests/cython/build_tests.bat -cuda_bindings/tests/cython/build_tests.sh -cuda_bindings/tests/cython/test_ccuda.pyx -cuda_bindings/tests/cython/test_ccudart.pyx -cuda_bindings/tests/cython/test_interoperability_cython.pyx -cuda_bindings/tests/pytest.ini diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in index 2179a10bd..510ae1f66 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in +++ b/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in index 44233c5b4..aabd77825 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in index b45bdde3c..d50e98eaf 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in +++ b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in index 81283084f..3e1ad4640 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in index aef8a71b2..5d2b8791b 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in +++ b/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in index db5d7ada9..2d89a1742 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in index f46087700..e2f0aeb04 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in +++ b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in index 6bfefac5c..7f05f3690 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.cpp b/cuda_bindings/cuda/bindings/_bindings/loader.cpp index b2477fef3..d252ea4c1 100644 --- a/cuda_bindings/cuda/bindings/_bindings/loader.cpp +++ b/cuda_bindings/cuda/bindings/_bindings/loader.cpp @@ -1,4 +1,5 @@ // Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.h b/cuda_bindings/cuda/bindings/_bindings/loader.h index 2963d9e0d..eb9783bb5 100644 --- a/cuda_bindings/cuda/bindings/_bindings/loader.h +++ b/cuda_bindings/cuda/bindings/_bindings/loader.h @@ -1,4 +1,5 @@ // Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.pxd b/cuda_bindings/cuda/bindings/_bindings/loader.pxd index 171515809..47df255c8 100644 --- a/cuda_bindings/cuda/bindings/_bindings/loader.pxd +++ b/cuda_bindings/cuda/bindings/_bindings/loader.pxd @@ -1,5 +1,5 @@ - # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in index 6a8101e3a..4a17a4e68 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in index 0f2685b99..c06bafd97 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in b/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in index eb3612522..fcf6ea532 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in b/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in index abe1d9940..3a9ed0575 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/dlfcn.pxd b/cuda_bindings/cuda/bindings/_lib/dlfcn.pxd index 808c7186c..7ed8ac1ad 100644 --- a/cuda_bindings/cuda/bindings/_lib/dlfcn.pxd +++ b/cuda_bindings/cuda/bindings/_lib/dlfcn.pxd @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of @@ -15,4 +16,4 @@ cdef extern from "" nogil: RTLD_LAZY RTLD_NOW RTLD_GLOBAL - RTLD_LOCAL \ No newline at end of file + RTLD_LOCAL diff --git a/cuda_bindings/cuda/bindings/_lib/param_packer.cpp b/cuda_bindings/cuda/bindings/_lib/param_packer.cpp index 63386a177..4ea6ae171 100644 --- a/cuda_bindings/cuda/bindings/_lib/param_packer.cpp +++ b/cuda_bindings/cuda/bindings/_lib/param_packer.cpp @@ -1,4 +1,5 @@ // Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/param_packer.h b/cuda_bindings/cuda/bindings/_lib/param_packer.h index 2dfa4deb6..b9a957af0 100644 --- a/cuda_bindings/cuda/bindings/_lib/param_packer.h +++ b/cuda_bindings/cuda/bindings/_lib/param_packer.h @@ -1,4 +1,5 @@ // Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/param_packer.pxd b/cuda_bindings/cuda/bindings/_lib/param_packer.pxd index 440006f57..3e55db817 100644 --- a/cuda_bindings/cuda/bindings/_lib/param_packer.pxd +++ b/cuda_bindings/cuda/bindings/_lib/param_packer.pxd @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/utils.pxd.in b/cuda_bindings/cuda/bindings/_lib/utils.pxd.in index d8f6b790b..e6956048c 100644 --- a/cuda_bindings/cuda/bindings/_lib/utils.pxd.in +++ b/cuda_bindings/cuda/bindings/_lib/utils.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/_lib/utils.pyx.in b/cuda_bindings/cuda/bindings/_lib/utils.pyx.in index fdcaafd2c..b8537b982 100644 --- a/cuda_bindings/cuda/bindings/_lib/utils.pyx.in +++ b/cuda_bindings/cuda/bindings/_lib/utils.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd.in b/cuda_bindings/cuda/bindings/cydriver.pxd.in index 68db6b032..868ab2422 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pxd.in +++ b/cuda_bindings/cuda/bindings/cydriver.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of @@ -5144,4 +5145,4 @@ cdef enum: RESOURCE_ABI_EXTERNAL_BYTES = 48 cdef enum: MAX_PLANES = 3 -cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 \ No newline at end of file +cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 diff --git a/cuda_bindings/cuda/bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/cydriver.pyx.in index 7697f0dec..0381ad4b8 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pyx.in +++ b/cuda_bindings/cuda/bindings/cydriver.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pxd.in b/cuda_bindings/cuda/bindings/cynvrtc.pxd.in index 7500078fb..a3708a244 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pxd.in +++ b/cuda_bindings/cuda/bindings/cynvrtc.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pyx.in b/cuda_bindings/cuda/bindings/cynvrtc.pyx.in index 1d5cbae01..62de54f6f 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pyx.in +++ b/cuda_bindings/cuda/bindings/cynvrtc.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/cyruntime.pxd.in index 206089b58..75269c840 100644 --- a/cuda_bindings/cuda/bindings/cyruntime.pxd.in +++ b/cuda_bindings/cuda/bindings/cyruntime.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of @@ -1953,4 +1954,4 @@ cdef enum: CUDART_VERSION = 12090 cdef enum: __CUDART_API_VERSION = 12090 -cdef enum: CUDA_EGL_MAX_PLANES = 3 \ No newline at end of file +cdef enum: CUDA_EGL_MAX_PLANES = 3 diff --git a/cuda_bindings/cuda/bindings/cyruntime.pyx.in b/cuda_bindings/cuda/bindings/cyruntime.pyx.in index f1dc2b549..ee089d1b8 100644 --- a/cuda_bindings/cuda/bindings/cyruntime.pyx.in +++ b/cuda_bindings/cuda/bindings/cyruntime.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in b/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in index d323619ca..37e647c5d 100644 --- a/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in +++ b/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in b/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in index 3198ce2bd..6019092d6 100644 --- a/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in +++ b/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/driver.pxd.in b/cuda_bindings/cuda/bindings/driver.pxd.in index c45c34da0..aa882f39b 100644 --- a/cuda_bindings/cuda/bindings/driver.pxd.in +++ b/cuda_bindings/cuda/bindings/driver.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/driver.pyx.in b/cuda_bindings/cuda/bindings/driver.pyx.in index b8771dd30..7a98a7ea4 100644 --- a/cuda_bindings/cuda/bindings/driver.pyx.in +++ b/cuda_bindings/cuda/bindings/driver.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/nvrtc.pxd.in b/cuda_bindings/cuda/bindings/nvrtc.pxd.in index e3dd52de0..76f3c23e3 100644 --- a/cuda_bindings/cuda/bindings/nvrtc.pxd.in +++ b/cuda_bindings/cuda/bindings/nvrtc.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/nvrtc.pyx.in b/cuda_bindings/cuda/bindings/nvrtc.pyx.in index 717e58a1e..4d62c858d 100644 --- a/cuda_bindings/cuda/bindings/nvrtc.pyx.in +++ b/cuda_bindings/cuda/bindings/nvrtc.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/runtime.pxd.in b/cuda_bindings/cuda/bindings/runtime.pxd.in index a6f56b452..80d502eb6 100644 --- a/cuda_bindings/cuda/bindings/runtime.pxd.in +++ b/cuda_bindings/cuda/bindings/runtime.pxd.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/cuda/bindings/runtime.pyx.in b/cuda_bindings/cuda/bindings/runtime.pyx.in index c3b8aa6f2..00ce83e57 100644 --- a/cuda_bindings/cuda/bindings/runtime.pyx.in +++ b/cuda_bindings/cuda/bindings/runtime.pyx.in @@ -1,4 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/tests/cython/test_ccuda.pyx b/cuda_bindings/tests/cython/test_ccuda.pyx index a2ade6056..e2c8612b8 100644 --- a/cuda_bindings/tests/cython/test_ccuda.pyx +++ b/cuda_bindings/tests/cython/test_ccuda.pyx @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/tests/cython/test_ccudart.pyx b/cuda_bindings/tests/cython/test_ccudart.pyx index aaa2f5d7a..795825ade 100644 --- a/cuda_bindings/tests/cython/test_ccudart.pyx +++ b/cuda_bindings/tests/cython/test_ccudart.pyx @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of diff --git a/cuda_bindings/tests/cython/test_interoperability_cython.pyx b/cuda_bindings/tests/cython/test_interoperability_cython.pyx index 89e36a4c6..bfa2b7a19 100644 --- a/cuda_bindings/tests/cython/test_interoperability_cython.pyx +++ b/cuda_bindings/tests/cython/test_interoperability_cython.pyx @@ -1,4 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # Please refer to the NVIDIA end user license agreement (EULA) associated # with this source code for terms and conditions that govern your use of From e87e8f5b1a3b93a74441af23b122157f4d5379c7 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 15:23:31 -0700 Subject: [PATCH 10/15] Remove all EULA paragraphs (cuda_bindings/, cuda_core/) --- cuda_bindings/benchmarks/conftest.py | 7 +------ cuda_bindings/benchmarks/kernels.py | 7 +------ cuda_bindings/benchmarks/test_cupy.py | 7 +------ cuda_bindings/benchmarks/test_launch_latency.py | 7 +------ cuda_bindings/benchmarks/test_numba.py | 7 +------ cuda_bindings/benchmarks/test_pointer_attributes.py | 7 +------ cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in | 8 +------- cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in | 8 +------- cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in | 8 +------- cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in | 8 +------- cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in | 8 +------- cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in | 8 +------- .../cuda/bindings/_bindings/cyruntime_ptds.pxd.in | 8 +------- .../cuda/bindings/_bindings/cyruntime_ptds.pyx.in | 8 +------- cuda_bindings/cuda/bindings/_bindings/loader.cpp | 8 +------- cuda_bindings/cuda/bindings/_bindings/loader.pxd | 7 +------ .../cuda/bindings/_lib/cyruntime/cyruntime.pxd.in | 7 +------ .../cuda/bindings/_lib/cyruntime/cyruntime.pyx.in | 7 +------ cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in | 7 +------ cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in | 7 +------ cuda_bindings/cuda/bindings/_lib/dlfcn.pxd | 7 +------ cuda_bindings/cuda/bindings/_lib/param_packer.cpp | 7 +------ cuda_bindings/cuda/bindings/_lib/param_packer.pxd | 7 +------ cuda_bindings/cuda/bindings/_lib/utils.pxd.in | 7 +------ cuda_bindings/cuda/bindings/_lib/utils.pyx.in | 7 +------ cuda_bindings/cuda/bindings/_version.py | 6 ------ cuda_bindings/cuda/bindings/cydriver.pxd.in | 8 +------- cuda_bindings/cuda/bindings/cydriver.pyx.in | 8 +------- cuda_bindings/cuda/bindings/cynvrtc.pxd.in | 8 +------- cuda_bindings/cuda/bindings/cynvrtc.pyx.in | 8 +------- cuda_bindings/cuda/bindings/cyruntime.pxd.in | 8 +------- cuda_bindings/cuda/bindings/cyruntime.pyx.in | 8 +------- cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in | 8 +------- cuda_bindings/cuda/bindings/cyruntime_types.pxi.in | 8 +------- cuda_bindings/cuda/bindings/driver.pxd.in | 8 +------- cuda_bindings/cuda/bindings/driver.pyx.in | 8 +------- cuda_bindings/cuda/bindings/nvrtc.pxd.in | 8 +------- cuda_bindings/cuda/bindings/nvrtc.pyx.in | 8 +------- cuda_bindings/cuda/bindings/runtime.pxd.in | 8 +------- cuda_bindings/cuda/bindings/runtime.pyx.in | 8 +------- cuda_bindings/pyproject.toml | 7 ------- cuda_bindings/setup.py | 7 ------- cuda_bindings/tests/cython/test_ccuda.pyx | 6 ------ cuda_bindings/tests/cython/test_ccudart.pyx | 6 ------ cuda_bindings/tests/cython/test_cython.py | 7 +------ .../tests/cython/test_interoperability_cython.pyx | 6 ------ cuda_bindings/tests/test_cuda.py | 7 +------ cuda_bindings/tests/test_cudart.py | 7 +------ cuda_bindings/tests/test_interoperability.py | 7 +------ cuda_bindings/tests/test_kernelParams.py | 7 +------ cuda_bindings/tests/test_nvrtc.py | 7 +------ cuda_core/tests/conftest.py | 6 ------ cuda_core/tests/example_tests/test_basic_examples.py | 6 ------ cuda_core/tests/example_tests/utils.py | 6 ------ cuda_core/tests/test_context.py | 6 ------ cuda_core/tests/test_device.py | 6 ------ cuda_core/tests/test_event.py | 6 ------ cuda_core/tests/test_launcher.py | 6 ------ cuda_core/tests/test_memory.py | 6 ------ cuda_core/tests/test_module.py | 7 ------- cuda_core/tests/test_stream.py | 6 ------ 61 files changed, 45 insertions(+), 392 deletions(-) diff --git a/cuda_bindings/benchmarks/conftest.py b/cuda_bindings/benchmarks/conftest.py index a8b74180c..971501166 100644 --- a/cuda_bindings/benchmarks/conftest.py +++ b/cuda_bindings/benchmarks/conftest.py @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import numpy as np import pytest diff --git a/cuda_bindings/benchmarks/kernels.py b/cuda_bindings/benchmarks/kernels.py index ea59ccbfe..d5857eadd 100644 --- a/cuda_bindings/benchmarks/kernels.py +++ b/cuda_bindings/benchmarks/kernels.py @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + kernel_string = """\ #define ITEM_PARAM(x, T) T x #define REP1(x, T) , ITEM_PARAM(x, T) diff --git a/cuda_bindings/benchmarks/test_cupy.py b/cuda_bindings/benchmarks/test_cupy.py index cd43faf29..33dfecbf8 100644 --- a/cuda_bindings/benchmarks/test_cupy.py +++ b/cuda_bindings/benchmarks/test_cupy.py @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import ctypes import pytest diff --git a/cuda_bindings/benchmarks/test_launch_latency.py b/cuda_bindings/benchmarks/test_launch_latency.py index f8d28f3ac..e79542c04 100755 --- a/cuda_bindings/benchmarks/test_launch_latency.py +++ b/cuda_bindings/benchmarks/test_launch_latency.py @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import ctypes import pytest diff --git a/cuda_bindings/benchmarks/test_numba.py b/cuda_bindings/benchmarks/test_numba.py index 7cbd84bcc..49035e0cd 100644 --- a/cuda_bindings/benchmarks/test_numba.py +++ b/cuda_bindings/benchmarks/test_numba.py @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import numpy as np import pytest diff --git a/cuda_bindings/benchmarks/test_pointer_attributes.py b/cuda_bindings/benchmarks/test_pointer_attributes.py index e54997ff5..ecaaa8db5 100644 --- a/cuda_bindings/benchmarks/test_pointer_attributes.py +++ b/cuda_bindings/benchmarks/test_pointer_attributes.py @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import random import pytest diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in index 510ae1f66..a5aadc37b 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in +++ b/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. from cuda.bindings.cydriver cimport * diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in index aabd77825..9b5cfedbd 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. {{if 'Windows' == platform.system()}} import os diff --git a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in index d50e98eaf..058101c94 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in +++ b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. from cuda.bindings.cynvrtc cimport * diff --git a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in index 3e1ad4640..40624598e 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. {{if 'Windows' == platform.system()}} import os diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in index 5d2b8791b..ee6e70215 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in +++ b/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. include "../cyruntime_types.pxi" diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in index 2d89a1742..d1636bbbd 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. include "../cyruntime_functions.pxi" diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in index e2f0aeb04..b4745b5c4 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in +++ b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cdef extern from "": """ diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in index 7f05f3690..3ddab4e55 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cdef extern from "": """ diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.cpp b/cuda_bindings/cuda/bindings/_bindings/loader.cpp index d252ea4c1..78ad69401 100644 --- a/cuda_bindings/cuda/bindings/_bindings/loader.cpp +++ b/cuda_bindings/cuda/bindings/_bindings/loader.cpp @@ -1,12 +1,6 @@ // Copyright 2021-2024 NVIDIA Corporation. All rights reserved. // SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -// -// Please refer to the NVIDIA end user license agreement (EULA) associated -// with this source code for terms and conditions that govern your use of -// this software. Any use, reproduction, disclosure, or distribution of -// this software and related documentation outside the terms of the EULA -// is strictly prohibited. -#include + #include #include #include "loader.h" diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.pxd b/cuda_bindings/cuda/bindings/_bindings/loader.pxd index 47df255c8..4310f14e7 100644 --- a/cuda_bindings/cuda/bindings/_bindings/loader.pxd +++ b/cuda_bindings/cuda/bindings/_bindings/loader.pxd @@ -1,10 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + cdef extern from "loader.h": int getCUDALibraryPath(char *libPath, bint isBit64) diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in index 4a17a4e68..044eeaece 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd.in @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + from cuda.bindings.cyruntime cimport * # These graphics API are the reimplemented version of what's supported by CUDA Runtime. diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in index c06bafd97..6337894bf 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx.in @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + from cuda.bindings.cyruntime cimport * from cuda.bindings._lib.cyruntime.utils cimport * from libc.string cimport memset diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in b/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in index fcf6ea532..a4efc67f0 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd.in @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + from cuda.bindings.cyruntime cimport * cimport cuda.bindings._bindings.cydriver as cydriver diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in b/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in index 3a9ed0575..65766c671 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pyx.in @@ -1,11 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import cython from cuda.bindings.cyruntime cimport * from libc.string cimport memset diff --git a/cuda_bindings/cuda/bindings/_lib/dlfcn.pxd b/cuda_bindings/cuda/bindings/_lib/dlfcn.pxd index 7ed8ac1ad..21207a969 100644 --- a/cuda_bindings/cuda/bindings/_lib/dlfcn.pxd +++ b/cuda_bindings/cuda/bindings/_lib/dlfcn.pxd @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + cdef extern from "" nogil: void *dlopen(const char *, int) char *dlerror() diff --git a/cuda_bindings/cuda/bindings/_lib/param_packer.cpp b/cuda_bindings/cuda/bindings/_lib/param_packer.cpp index 4ea6ae171..648b7fda0 100644 --- a/cuda_bindings/cuda/bindings/_lib/param_packer.cpp +++ b/cuda_bindings/cuda/bindings/_lib/param_packer.cpp @@ -1,11 +1,6 @@ // Copyright 2021-2024 NVIDIA Corporation. All rights reserved. // SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -// -// Please refer to the NVIDIA end user license agreement (EULA) associated -// with this source code for terms and conditions that govern your use of -// this software. Any use, reproduction, disclosure, or distribution of -// this software and related documentation outside the terms of the EULA -// is strictly prohibited. + #include #include "param_packer.h" diff --git a/cuda_bindings/cuda/bindings/_lib/param_packer.pxd b/cuda_bindings/cuda/bindings/_lib/param_packer.pxd index 3e55db817..bfe2f426a 100644 --- a/cuda_bindings/cuda/bindings/_lib/param_packer.pxd +++ b/cuda_bindings/cuda/bindings/_lib/param_packer.pxd @@ -1,10 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + cdef extern from "param_packer.h": int feed(void* ptr, object o, object ct) diff --git a/cuda_bindings/cuda/bindings/_lib/utils.pxd.in b/cuda_bindings/cuda/bindings/_lib/utils.pxd.in index e6956048c..a67bdfda1 100644 --- a/cuda_bindings/cuda/bindings/_lib/utils.pxd.in +++ b/cuda_bindings/cuda/bindings/_lib/utils.pxd.in @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + cimport cuda.bindings.driver as driver cimport cuda.bindings.cydriver as cydriver cimport cuda.bindings.cyruntime as cyruntime diff --git a/cuda_bindings/cuda/bindings/_lib/utils.pyx.in b/cuda_bindings/cuda/bindings/_lib/utils.pyx.in index b8537b982..ed85149b3 100644 --- a/cuda_bindings/cuda/bindings/_lib/utils.pyx.in +++ b/cuda_bindings/cuda/bindings/_lib/utils.pyx.in @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + from cpython.buffer cimport PyObject_CheckBuffer, PyObject_GetBuffer, PyBuffer_Release, PyBUF_SIMPLE, PyBUF_ANY_CONTIGUOUS from libc.stdlib cimport calloc, free from libc.stdint cimport int32_t, uint32_t, int64_t, uint64_t diff --git a/cuda_bindings/cuda/bindings/_version.py b/cuda_bindings/cuda/bindings/_version.py index 29d77383f..645a0bf9c 100644 --- a/cuda_bindings/cuda/bindings/_version.py +++ b/cuda_bindings/cuda/bindings/_version.py @@ -1,10 +1,4 @@ # Copyright 2024-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. __version__ = "12.9.0" diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd.in b/cuda_bindings/cuda/bindings/cydriver.pxd.in index 868ab2422..6efe3cf35 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pxd.in +++ b/cuda_bindings/cuda/bindings/cydriver.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. from libc.stdint cimport uint32_t, uint64_t diff --git a/cuda_bindings/cuda/bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/cydriver.pyx.in index 0381ad4b8..5b5752b39 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pyx.in +++ b/cuda_bindings/cuda/bindings/cydriver.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cimport cuda.bindings._bindings.cydriver as cydriver diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pxd.in b/cuda_bindings/cuda/bindings/cynvrtc.pxd.in index a3708a244..a432f2155 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pxd.in +++ b/cuda_bindings/cuda/bindings/cynvrtc.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. from libc.stdint cimport uint32_t, uint64_t diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pyx.in b/cuda_bindings/cuda/bindings/cynvrtc.pyx.in index 62de54f6f..a19e081c3 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pyx.in +++ b/cuda_bindings/cuda/bindings/cynvrtc.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cimport cuda.bindings._bindings.cynvrtc as cynvrtc diff --git a/cuda_bindings/cuda/bindings/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/cyruntime.pxd.in index 75269c840..a9fb923e8 100644 --- a/cuda_bindings/cuda/bindings/cyruntime.pxd.in +++ b/cuda_bindings/cuda/bindings/cyruntime.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. from libc.stdint cimport uint32_t, uint64_t diff --git a/cuda_bindings/cuda/bindings/cyruntime.pyx.in b/cuda_bindings/cuda/bindings/cyruntime.pyx.in index ee089d1b8..ae4ab76a1 100644 --- a/cuda_bindings/cuda/bindings/cyruntime.pyx.in +++ b/cuda_bindings/cuda/bindings/cyruntime.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cimport cuda.bindings._bindings.cyruntime as cyruntime cimport cuda.bindings._lib.cyruntime.cyruntime as custom_cyruntime diff --git a/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in b/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in index 37e647c5d..dd1513f48 100644 --- a/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in +++ b/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cdef extern from "cuda_runtime_api.h": diff --git a/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in b/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in index 6019092d6..7ed8f6533 100644 --- a/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in +++ b/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cdef extern from "vector_types.h": diff --git a/cuda_bindings/cuda/bindings/driver.pxd.in b/cuda_bindings/cuda/bindings/driver.pxd.in index aa882f39b..6e73074fb 100644 --- a/cuda_bindings/cuda/bindings/driver.pxd.in +++ b/cuda_bindings/cuda/bindings/driver.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cimport cuda.bindings.cydriver as cydriver cimport cuda.bindings._lib.utils as utils diff --git a/cuda_bindings/cuda/bindings/driver.pyx.in b/cuda_bindings/cuda/bindings/driver.pyx.in index 7a98a7ea4..a256ae453 100644 --- a/cuda_bindings/cuda/bindings/driver.pyx.in +++ b/cuda_bindings/cuda/bindings/driver.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. from typing import List, Tuple, Any, Optional from enum import IntEnum diff --git a/cuda_bindings/cuda/bindings/nvrtc.pxd.in b/cuda_bindings/cuda/bindings/nvrtc.pxd.in index 76f3c23e3..07d2af343 100644 --- a/cuda_bindings/cuda/bindings/nvrtc.pxd.in +++ b/cuda_bindings/cuda/bindings/nvrtc.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cimport cuda.bindings.cynvrtc as cynvrtc cimport cuda.bindings._lib.utils as utils diff --git a/cuda_bindings/cuda/bindings/nvrtc.pyx.in b/cuda_bindings/cuda/bindings/nvrtc.pyx.in index 4d62c858d..9fcfff473 100644 --- a/cuda_bindings/cuda/bindings/nvrtc.pyx.in +++ b/cuda_bindings/cuda/bindings/nvrtc.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. from typing import List, Tuple, Any, Optional from enum import IntEnum diff --git a/cuda_bindings/cuda/bindings/runtime.pxd.in b/cuda_bindings/cuda/bindings/runtime.pxd.in index 80d502eb6..83987c8fb 100644 --- a/cuda_bindings/cuda/bindings/runtime.pxd.in +++ b/cuda_bindings/cuda/bindings/runtime.pxd.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. cimport cuda.bindings.cyruntime as cyruntime cimport cuda.bindings._lib.utils as utils diff --git a/cuda_bindings/cuda/bindings/runtime.pyx.in b/cuda_bindings/cuda/bindings/runtime.pyx.in index 00ce83e57..4e36cce1e 100644 --- a/cuda_bindings/cuda/bindings/runtime.pyx.in +++ b/cuda_bindings/cuda/bindings/runtime.pyx.in @@ -1,12 +1,6 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. -# + # This code was automatically generated with version 12.9.0. Do not modify it directly. from typing import List, Tuple, Any, Optional from enum import IntEnum diff --git a/cuda_bindings/pyproject.toml b/cuda_bindings/pyproject.toml index 875547033..e13dc015c 100644 --- a/cuda_bindings/pyproject.toml +++ b/cuda_bindings/pyproject.toml @@ -1,12 +1,5 @@ # Copyright 2023-2024 NVIDIA Corporation. All rights reserved. -# # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. [build-system] requires = ["setuptools>=77.0.0", "cython", "pyclibrary"] diff --git a/cuda_bindings/setup.py b/cuda_bindings/setup.py index 8b951b2e0..776a510cb 100644 --- a/cuda_bindings/setup.py +++ b/cuda_bindings/setup.py @@ -1,12 +1,5 @@ # Copyright 2021-2025 NVIDIA Corporation. All rights reserved. -# # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. import atexit import contextlib diff --git a/cuda_bindings/tests/cython/test_ccuda.pyx b/cuda_bindings/tests/cython/test_ccuda.pyx index e2c8612b8..49990dbfc 100644 --- a/cuda_bindings/tests/cython/test_ccuda.pyx +++ b/cuda_bindings/tests/cython/test_ccuda.pyx @@ -1,11 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. # distutils: language=c++ from libc.string cimport ( diff --git a/cuda_bindings/tests/cython/test_ccudart.pyx b/cuda_bindings/tests/cython/test_ccudart.pyx index 795825ade..b0267a0d4 100644 --- a/cuda_bindings/tests/cython/test_ccudart.pyx +++ b/cuda_bindings/tests/cython/test_ccudart.pyx @@ -1,11 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. # distutils: language=c++ from libc.string cimport ( diff --git a/cuda_bindings/tests/cython/test_cython.py b/cuda_bindings/tests/cython/test_cython.py index 91242df42..2f39699f1 100644 --- a/cuda_bindings/tests/cython/test_cython.py +++ b/cuda_bindings/tests/cython/test_cython.py @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import functools import importlib import sys diff --git a/cuda_bindings/tests/cython/test_interoperability_cython.pyx b/cuda_bindings/tests/cython/test_interoperability_cython.pyx index bfa2b7a19..38ea372ed 100644 --- a/cuda_bindings/tests/cython/test_interoperability_cython.pyx +++ b/cuda_bindings/tests/cython/test_interoperability_cython.pyx @@ -1,11 +1,5 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. # distutils: language=c++ from libc.stdlib cimport calloc, free diff --git a/cuda_bindings/tests/test_cuda.py b/cuda_bindings/tests/test_cuda.py index e35b72d3e..3ad670311 100644 --- a/cuda_bindings/tests/test_cuda.py +++ b/cuda_bindings/tests/test_cuda.py @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import platform import shutil import textwrap diff --git a/cuda_bindings/tests/test_cudart.py b/cuda_bindings/tests/test_cudart.py index 3c0c72dc2..be5f217b9 100644 --- a/cuda_bindings/tests/test_cudart.py +++ b/cuda_bindings/tests/test_cudart.py @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import ctypes import math diff --git a/cuda_bindings/tests/test_interoperability.py b/cuda_bindings/tests/test_interoperability.py index 269e6129a..9105273b6 100644 --- a/cuda_bindings/tests/test_interoperability.py +++ b/cuda_bindings/tests/test_interoperability.py @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import numpy as np import pytest diff --git a/cuda_bindings/tests/test_kernelParams.py b/cuda_bindings/tests/test_kernelParams.py index a26ff64fd..8d17aba0f 100644 --- a/cuda_bindings/tests/test_kernelParams.py +++ b/cuda_bindings/tests/test_kernelParams.py @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import ctypes import numpy as np diff --git a/cuda_bindings/tests/test_nvrtc.py b/cuda_bindings/tests/test_nvrtc.py index 4bb711f00..682e55f39 100644 --- a/cuda_bindings/tests/test_nvrtc.py +++ b/cuda_bindings/tests/test_nvrtc.py @@ -1,11 +1,6 @@ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. + import pytest from cuda import nvrtc diff --git a/cuda_core/tests/conftest.py b/cuda_core/tests/conftest.py index ffbaf0dc4..b27a33676 100644 --- a/cuda_core/tests/conftest.py +++ b/cuda_core/tests/conftest.py @@ -1,11 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. import glob import os diff --git a/cuda_core/tests/example_tests/test_basic_examples.py b/cuda_core/tests/example_tests/test_basic_examples.py index 063f77135..e3637f974 100644 --- a/cuda_core/tests/example_tests/test_basic_examples.py +++ b/cuda_core/tests/example_tests/test_basic_examples.py @@ -1,11 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. # If we have subcategories of examples in the future, this file can be split along those lines diff --git a/cuda_core/tests/example_tests/utils.py b/cuda_core/tests/example_tests/utils.py index 996b2d7ee..a4da3d73d 100644 --- a/cuda_core/tests/example_tests/utils.py +++ b/cuda_core/tests/example_tests/utils.py @@ -1,11 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. import gc import os diff --git a/cuda_core/tests/test_context.py b/cuda_core/tests/test_context.py index f52c3b0b2..4de4e6b40 100644 --- a/cuda_core/tests/test_context.py +++ b/cuda_core/tests/test_context.py @@ -1,11 +1,5 @@ # Copyright 2025 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. import pytest diff --git a/cuda_core/tests/test_device.py b/cuda_core/tests/test_device.py index 2e929253d..309d661f5 100644 --- a/cuda_core/tests/test_device.py +++ b/cuda_core/tests/test_device.py @@ -1,11 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. try: from cuda.bindings import driver, runtime diff --git a/cuda_core/tests/test_event.py b/cuda_core/tests/test_event.py index aa77fd811..d3f830651 100644 --- a/cuda_core/tests/test_event.py +++ b/cuda_core/tests/test_event.py @@ -1,11 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. import os import pathlib diff --git a/cuda_core/tests/test_launcher.py b/cuda_core/tests/test_launcher.py index 97ddd0d34..0ad6f94e0 100644 --- a/cuda_core/tests/test_launcher.py +++ b/cuda_core/tests/test_launcher.py @@ -1,11 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. import pytest diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index e8ce3e6a5..5bcc607da 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -1,11 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. try: from cuda.bindings import driver diff --git a/cuda_core/tests/test_module.py b/cuda_core/tests/test_module.py index 2f8bde8ff..1478b98fc 100644 --- a/cuda_core/tests/test_module.py +++ b/cuda_core/tests/test_module.py @@ -1,12 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. - import warnings diff --git a/cuda_core/tests/test_stream.py b/cuda_core/tests/test_stream.py index 708724c39..a73655f1a 100644 --- a/cuda_core/tests/test_stream.py +++ b/cuda_core/tests/test_stream.py @@ -1,11 +1,5 @@ # Copyright 2024 NVIDIA Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# -# Please refer to the NVIDIA end user license agreement (EULA) associated -# with this source code for terms and conditions that govern your use of -# this software. Any use, reproduction, disclosure, or distribution of -# this software and related documentation outside the terms of the EULA -# is strictly prohibited. import pytest From 85e0182fa984188c6685fd5164e40eb2c5eb4483 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 12 May 2025 17:16:37 -0700 Subject: [PATCH 11/15] Fix accident (lost #include ) --- cuda_bindings/cuda/bindings/_bindings/loader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.cpp b/cuda_bindings/cuda/bindings/_bindings/loader.cpp index 78ad69401..e80c5574d 100644 --- a/cuda_bindings/cuda/bindings/_bindings/loader.cpp +++ b/cuda_bindings/cuda/bindings/_bindings/loader.cpp @@ -1,6 +1,7 @@ // Copyright 2021-2024 NVIDIA Corporation. All rights reserved. // SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +#include #include #include #include "loader.h" From 9c54b371f5c7dd979a6650b50040076aa94a3eaf Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 13 May 2025 15:50:27 -0700 Subject: [PATCH 12/15] codegen changes overlooked in a recent prior update --- cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in | 5 ++--- cuda_bindings/cuda/bindings/cydriver.pxd.in | 2 +- cuda_bindings/cuda/bindings/cyruntime.pxd.in | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in index 9b5cfedbd..e22c9a5c7 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in @@ -4,14 +4,13 @@ # This code was automatically generated with version 12.9.0. Do not modify it directly. {{if 'Windows' == platform.system()}} import os -import site -import struct import win32api -from pywintypes import error {{else}} cimport cuda.bindings._lib.dlfcn as dlfcn + {{endif}} + from libc.stdint cimport intptr_t import os import sys diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd.in b/cuda_bindings/cuda/bindings/cydriver.pxd.in index 6efe3cf35..7f0ffca84 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pxd.in +++ b/cuda_bindings/cuda/bindings/cydriver.pxd.in @@ -5139,4 +5139,4 @@ cdef enum: RESOURCE_ABI_EXTERNAL_BYTES = 48 cdef enum: MAX_PLANES = 3 -cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 +cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 \ No newline at end of file diff --git a/cuda_bindings/cuda/bindings/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/cyruntime.pxd.in index a9fb923e8..83083ab6a 100644 --- a/cuda_bindings/cuda/bindings/cyruntime.pxd.in +++ b/cuda_bindings/cuda/bindings/cyruntime.pxd.in @@ -1948,4 +1948,4 @@ cdef enum: CUDART_VERSION = 12090 cdef enum: __CUDART_API_VERSION = 12090 -cdef enum: CUDA_EGL_MAX_PLANES = 3 +cdef enum: CUDA_EGL_MAX_PLANES = 3 \ No newline at end of file From 33f5a49246f22077b5710a086337f550ce43bce6 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 13 May 2025 20:36:10 -0700 Subject: [PATCH 13/15] Update after fixing codegen for driver --- cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in | 4 +--- cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in index e22c9a5c7..f5e8ead80 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in @@ -5,12 +5,10 @@ {{if 'Windows' == platform.system()}} import os import win32api +from pywintypes import error {{else}} cimport cuda.bindings._lib.dlfcn as dlfcn - {{endif}} - - from libc.stdint cimport intptr_t import os import sys diff --git a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in index 40624598e..b6b896765 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in +++ b/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in @@ -10,7 +10,6 @@ cimport cuda.bindings._lib.dlfcn as dlfcn from libc.stdint cimport uintptr_t {{endif}} from cuda.bindings import path_finder - from libc.stdint cimport intptr_t cdef bint __cuPythonInit = False From 0b1579bbf43a49b7d13af580de480865e2a5cce6 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 13 May 2025 23:24:02 -0700 Subject: [PATCH 14/15] Pin pathspec==0.12.1 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4eeaf11c0..79ec098dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: entry: python ./toolshed/check_spdx.py language: python additional_dependencies: - - pathspec + - pathspec==0.12.1 - repo: https://github.com/PyCQA/bandit rev: 8ff25e07e487f143571cc305e56dd0253c60bc7b #v1.8.3 From e6dbf76a94ace5cf6ea207b33a93d5f44022c769 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 14 May 2025 08:12:49 -0700 Subject: [PATCH 15/15] Use direct PyPI URL for pathspec --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79ec098dd..a7112246a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: entry: python ./toolshed/check_spdx.py language: python additional_dependencies: - - pathspec==0.12.1 + - https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl - repo: https://github.com/PyCQA/bandit rev: 8ff25e07e487f143571cc305e56dd0253c60bc7b #v1.8.3