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 9ec80a39a6..95a1e7805a 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 0000000000..f983c0f652 --- /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 0000000000..50c5e2f6a4 --- /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 95a1e7805a..4eeaf11c0a 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 f983c0f652..b1a36c69c5 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 50c5e2f6a4..fb5b2ea262 --- 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 b1a36c69c5..c7095f7a83 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 fb5b2ea262..2b640b6e49 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 c7095f7a83..84214407aa 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 e1d72d26dc..a8b74180c1 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 119727b2d7..ea59ccbfe8 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 68fdd9831a..cd43faf297 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 7af5f84cc3..f8d28f3ac9 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 36361d351f..7cbd84bcca 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 5c9dbc2b64..e54997ff5a 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 2bde5f72e2..8086b4f6f1 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 293274d149..29d77383fb 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 5ea8b44434..699bb28add 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 c5e7a144ae..af8706ff63 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 ed50692196..91242df42a 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 8d8443e881..e35b72d3e7 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 f7eb1abb97..3c0c72dc26 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 9985359921..269e6129a1 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 c45bf46abb..a26ff64fd3 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 013d75f728..4bb711f005 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 23bb0274e5..ffbaf0dc49 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 f085e3c614..063f771356 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 229851a2f7..996b2d7ee9 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 c907b19cf4..f52c3b0b20 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 3fed6c32a1..2e929253db 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 f568ecdbaa..aa77fd811b 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 43fc9e5fa8..97ddd0d34b 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 1ff728c643..e8ce3e6a53 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 608ee03bb1..2f8bde8ff2 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 11cf02fa4b..708724c392 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 e8d3d83554..1640856c24 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 fe6e934dc3..78791993a0 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 2771228b70..1c459569ad 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 84214407aa..3240217e61 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 3f1222e89b..12fea39af0 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 2262278c9c..a2cde9df96 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 29860a8f84..d9c633cf96 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 d85ccec77c..3ffe61ef73 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 a84f570398..269a541379 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 733ae1bc87..b7bc4b2f72 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 b5244391f1..65501bbfa0 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 e285c3bd54..01abb5ea58 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 29860a8f84..8d2d73e364 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 9527072c8b..b340c74ab6 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 a74acd3e29..d7b4769db6 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 2a0f2672fb..57a5f476f8 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 0ad01d58f0..187ed5746e 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 f7c3def5d8..46e121f100 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 17b3c1ea8e..e1a6d66d7a 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 ed81707139..5805b5ead3 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 319512fa58..2fb4e05df7 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 981b62228c..8d8228a92d 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 e3d2986bb7..9dc2380476 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 09ff61b8c4..8e1f1d7c3f 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 75f2ef6c2b..f03265caf2 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 ffeece9da8..1ed8bc6c57 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 9534b01813..88e1803f4c 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 29860a8f84..8d2d73e364 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 c8a1ca9e6b..bac967c921 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 69d157ca8b..ac026268ad 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 82ef437c6e..236151bfa0 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 76f66832c6..e96583e688 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 2b640b6e49..1b519ceccf 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 3240217e61..60435ebb53 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 2179a10bdf..510ae1f662 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 44233c5b46..aabd77825d 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 b45bdde3cf..d50e98eaf7 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 81283084f3..3e1ad4640d 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 aef8a71b23..5d2b8791b5 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 db5d7ada98..2d89a1742d 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 f460877008..e2f0aeb048 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 6bfefac5c5..7f05f36904 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 b2477fef3a..d252ea4c1a 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 2963d9e0db..eb9783bb56 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 1715158096..47df255c82 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 6a8101e3a2..4a17a4e68c 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 0f2685b998..c06bafd974 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 eb36125226..fcf6ea532b 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 abe1d99403..3a9ed0575a 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 808c7186cf..7ed8ac1adc 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 63386a1779..4ea6ae1717 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 2dfa4deb6e..b9a957af0c 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 440006f57a..3e55db8174 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 d8f6b790bb..e6956048cb 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 fdcaafd2c1..b8537b9826 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 68db6b0324..868ab24229 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 7697f0deca..0381ad4b8f 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 7500078fb6..a3708a2442 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 1d5cbae014..62de54f6f2 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 206089b580..75269c8406 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 f1dc2b5491..ee089d1b83 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 d323619ca9..37e647c5db 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 3198ce2bdd..6019092d6f 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 c45c34da0b..aa882f39b2 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 b8771dd301..7a98a7ea44 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 e3dd52de0b..76f3c23e3a 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 717e58a1ea..4d62c858d1 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 a6f56b4529..80d502eb68 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 c3b8aa6f2f..00ce83e570 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 a2ade6056f..e2c8612b8c 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 aaa2f5d7a1..795825ade4 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 89e36a4c65..bfa2b7a19d 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 a8b74180c1..9715011663 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 ea59ccbfe8..d5857eadd1 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 cd43faf297..33dfecbf8d 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 f8d28f3ac9..e79542c04a 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 7cbd84bcca..49035e0cd8 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 e54997ff5a..ecaaa8db59 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 510ae1f662..a5aadc37b7 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 aabd77825d..9b5cfedbd4 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 d50e98eaf7..058101c94e 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 3e1ad4640d..40624598ee 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 5d2b8791b5..ee6e702153 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 2d89a1742d..d1636bbbd4 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 e2f0aeb048..b4745b5c46 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 7f05f36904..3ddab4e558 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 d252ea4c1a..78ad694016 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 47df255c82..4310f14e71 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 4a17a4e68c..044eeaece7 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 c06bafd974..6337894bff 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 fcf6ea532b..a4efc67f0f 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 3a9ed0575a..65766c671f 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 7ed8ac1adc..21207a9691 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 4ea6ae1717..648b7fda00 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 3e55db8174..bfe2f426a6 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 e6956048cb..a67bdfda15 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 b8537b9826..ed85149b3b 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 29d77383fb..645a0bf9c2 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 868ab24229..6efe3cf35c 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 0381ad4b8f..5b5752b390 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 a3708a2442..a432f21558 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 62de54f6f2..a19e081c3a 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 75269c8406..a9fb923e89 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 ee089d1b83..ae4ab76a1a 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 37e647c5db..dd1513f489 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 6019092d6f..7ed8f65334 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 aa882f39b2..6e73074fbc 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 7a98a7ea44..a256ae453c 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 76f3c23e3a..07d2af3437 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 4d62c858d1..9fcfff4739 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 80d502eb68..83987c8fbd 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 00ce83e570..4e36cce1ef 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 8755470333..e13dc015c7 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 8b951b2e08..776a510cb7 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 e2c8612b8c..49990dbfc1 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 795825ade4..b0267a0d47 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 91242df42a..2f39699f16 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 bfa2b7a19d..38ea372ed8 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 e35b72d3e7..3ad670311e 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 3c0c72dc26..be5f217b9a 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 269e6129a1..9105273b65 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 a26ff64fd3..8d17aba0fc 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 4bb711f005..682e55f397 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 ffbaf0dc49..b27a336768 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 063f771356..e3637f9748 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 996b2d7ee9..a4da3d73d7 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 f52c3b0b20..4de4e6b401 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 2e929253db..309d661f50 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 aa77fd811b..d3f8306517 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 97ddd0d34b..0ad6f94e0c 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 e8ce3e6a53..5bcc607da9 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 2f8bde8ff2..1478b98fc3 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 708724c392..a73655f1a8 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 78ad694016..e80c5574db 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 9b5cfedbd4..e22c9a5c7d 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 6efe3cf35c..7f0ffca84a 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 a9fb923e89..83083ab6a7 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 e22c9a5c7d..f5e8ead80f 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 40624598ee..b6b896765d 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 4eeaf11c0a..79ec098ddb 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 79ec098ddb..a7112246a3 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