diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index ba3c56fad..22ce1d66b 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,4 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause # Migrate code style to ruff a00e50bfeb00477bd017435b1ebbbe6faf97df4a diff --git a/.github/copy-pr-bot.yaml b/.github/copy-pr-bot.yaml index f349f6e7a..cd9ba7111 100644 --- a/.github/copy-pr-bot.yaml +++ b/.github/copy-pr-bot.yaml @@ -1,4 +1,5 @@ -# Copyright (c) 2023, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause # Configuration file for `copy-pr-bot` GitHub App # https://docs.gha-runners.nvidia.com/apps/copy-pr-bot/ diff --git a/.github/workflows/conda-python-build.yaml b/.github/workflows/conda-python-build.yaml index bec7bae68..eaa45fdbf 100644 --- a/.github/workflows/conda-python-build.yaml +++ b/.github/workflows/conda-python-build.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + on: workflow_call: inputs: diff --git a/.github/workflows/conda-python-tests.yaml b/.github/workflows/conda-python-tests.yaml index 03827dc70..4e30a4814 100644 --- a/.github/workflows/conda-python-tests.yaml +++ b/.github/workflows/conda-python-tests.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + on: workflow_call: inputs: diff --git a/.github/workflows/docs-build.yaml b/.github/workflows/docs-build.yaml index ac9b8f244..7973ce568 100644 --- a/.github/workflows/docs-build.yaml +++ b/.github/workflows/docs-build.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + on: workflow_call: inputs: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 4ce9f180a..bc433f1bb 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -1,5 +1,5 @@ # SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: BSD-2-Clause name: pr diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3b3d99319..e59ab37f8 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,5 +1,5 @@ # SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: BSD-2-Clause name: Publish packages diff --git a/.github/workflows/simulator-test.yaml b/.github/workflows/simulator-test.yaml index 015efe8bb..3202b20e0 100644 --- a/.github/workflows/simulator-test.yaml +++ b/.github/workflows/simulator-test.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + on: workflow_call: inputs: diff --git a/.github/workflows/wheels-build.yaml b/.github/workflows/wheels-build.yaml index 2c86cc1b4..f184b9e08 100644 --- a/.github/workflows/wheels-build.yaml +++ b/.github/workflows/wheels-build.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + name: Build RAPIDS wheels on: diff --git a/.github/workflows/wheels-test.yaml b/.github/workflows/wheels-test.yaml index 1833b44b6..415a54489 100644 --- a/.github/workflows/wheels-test.yaml +++ b/.github/workflows/wheels-test.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + name: Test RAPIDS wheels on: diff --git a/.gitignore b/.gitignore index c93d57b7d..6570d0d1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause .vscode __pycache__ *.egg-info diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 478cd1ef5..bae679c8e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 # Use the latest version or a specific tag diff --git a/ci/build_conda.sh b/ci/build_conda.sh index 22c194104..91511a926 100755 --- a/ci/build_conda.sh +++ b/ci/build_conda.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/build_docs.sh b/ci/build_docs.sh index 2b3109826..f5739b556 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/build_wheel.sh b/ci/build_wheel.sh index 837e1f9ca..300531a3d 100755 --- a/ci/build_wheel.sh +++ b/ci/build_wheel.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/check_style.sh b/ci/check_style.sh index b26565ee8..aae36e521 100755 --- a/ci/check_style.sh +++ b/ci/check_style.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/coverage_report.sh b/ci/coverage_report.sh index 7c82dea27..38482a073 100755 --- a/ci/coverage_report.sh +++ b/ci/coverage_report.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/matrix.yml b/ci/matrix.yml index 4ae5eb3f2..6cf2e4dac 100644 --- a/ci/matrix.yml +++ b/ci/matrix.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause # Please keep the matrices sorted in ascending order by the following: # # [ARCH, PY_VER, CUDA_VER, LINUX_VER, GPU, DRIVER, DEPENDENCIES] diff --git a/ci/release/update-version.sh b/ci/release/update-version.sh index 85122268c..7d12b1300 100755 --- a/ci/release/update-version.sh +++ b/ci/release/update-version.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause ## Usage # bash update-version.sh diff --git a/ci/test_conda.sh b/ci/test_conda.sh index 5e5fad03e..717ba5dc2 100755 --- a/ci/test_conda.sh +++ b/ci/test_conda.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/test_conda_ctypes_binding.sh b/ci/test_conda_ctypes_binding.sh index 3ec643dad..a7058619c 100755 --- a/ci/test_conda_ctypes_binding.sh +++ b/ci/test_conda_ctypes_binding.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/test_simulator.sh b/ci/test_simulator.sh index 111346346..4bdaf8bef 100755 --- a/ci/test_simulator.sh +++ b/ci/test_simulator.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/test_thirdparty.sh b/ci/test_thirdparty.sh index 781de78a8..bd1b1e335 100755 --- a/ci/test_thirdparty.sh +++ b/ci/test_thirdparty.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2025, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 5ba029f6e..a6c474fde 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2023-2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/test_wheel_ctypes_binding.sh b/ci/test_wheel_ctypes_binding.sh index 5a91b3b76..156ade407 100755 --- a/ci/test_wheel_ctypes_binding.sh +++ b/ci/test_wheel_ctypes_binding.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2023-2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/test_wheel_deps_wheels.sh b/ci/test_wheel_deps_wheels.sh index 3557ffab5..254745bc8 100755 --- a/ci/test_wheel_deps_wheels.sh +++ b/ci/test_wheel_deps_wheels.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (c) 2023-2024, NVIDIA CORPORATION +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/ci/upload_conda.sh b/ci/upload_conda.sh index 1ac266e22..3b56ea8d5 100755 --- a/ci/upload_conda.sh +++ b/ci/upload_conda.sh @@ -1,6 +1,6 @@ #!/bin/bash # SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: BSD-2-Clause set -euo pipefail diff --git a/conda/recipes/numba-cuda/meta.yaml b/conda/recipes/numba-cuda/meta.yaml index b6f4acc86..fb4d00c23 100644 --- a/conda/recipes/numba-cuda/meta.yaml +++ b/conda/recipes/numba-cuda/meta.yaml @@ -1,4 +1,5 @@ -# Copyright (c) 2024, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause {% set data = load_file_data("pyproject.toml") %} {% set version = load_file_regex( diff --git a/configs/cuda_bf16.yml b/configs/cuda_bf16.yml index 3f315e0f7..f08cdbd77 100644 --- a/configs/cuda_bf16.yml +++ b/configs/cuda_bf16.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause Name: Numba Bfloat16 Version: 0.0.1 Entry Point: ./numba_cuda/numba/cuda/include/12/cuda_bf16.h diff --git a/configs/cuda_fp16.yml b/configs/cuda_fp16.yml index 0fb2dd25e..ba87c6a2f 100644 --- a/configs/cuda_fp16.yml +++ b/configs/cuda_fp16.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause Name: Numba float16 Version: 0.0.1 Entry Point: ./numba_cuda/numba/cuda/include/12/cuda_fp16.h diff --git a/conftest.py b/conftest.py index a22593ad0..30776aa25 100644 --- a/conftest.py +++ b/conftest.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import pytest diff --git a/docs/Makefile b/docs/Makefile index a4de0bff1..38f9fcf53 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Minimal makefile for Sphinx documentation # diff --git a/docs/make.bat b/docs/make.bat index 3629950d6..5dea78e54 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -1,3 +1,6 @@ +@REM SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +@REM SPDX-License-Identifier: BSD-2-Clause + @ECHO OFF pushd %~dp0 diff --git a/docs/source/conf.py b/docs/source/conf.py index 79c490c7f..3557b58df 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: diff --git a/docs/source/index.rst b/docs/source/index.rst index 39ecab9f2..8bdd398de 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. Numba CUDA documentation master file, created by sphinx-quickstart on Wed Jun 12 13:41:17 2024. You can adapt this file completely to your liking, but it should at least diff --git a/docs/source/reference/envvars.rst b/docs/source/reference/envvars.rst index a8982ce50..ffde783d6 100644 --- a/docs/source/reference/envvars.rst +++ b/docs/source/reference/envvars.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _numba-envvars-gpu-support: Environment Variables diff --git a/docs/source/reference/host.rst b/docs/source/reference/host.rst index acf883464..64bebd2d9 100644 --- a/docs/source/reference/host.rst +++ b/docs/source/reference/host.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + CUDA Host API ============= diff --git a/docs/source/reference/index.rst b/docs/source/reference/index.rst index b337a855c..040eed00c 100644 --- a/docs/source/reference/index.rst +++ b/docs/source/reference/index.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + Reference documentation ======================= diff --git a/docs/source/reference/kernel.rst b/docs/source/reference/kernel.rst index c197fba83..64a452947 100644 --- a/docs/source/reference/kernel.rst +++ b/docs/source/reference/kernel.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + CUDA Kernel API =============== diff --git a/docs/source/reference/libdevice.rst b/docs/source/reference/libdevice.rst index be3cf2080..6b0a5b8c2 100644 --- a/docs/source/reference/libdevice.rst +++ b/docs/source/reference/libdevice.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + Libdevice functions =================== diff --git a/docs/source/reference/memory.rst b/docs/source/reference/memory.rst index b70995e96..3441f835e 100644 --- a/docs/source/reference/memory.rst +++ b/docs/source/reference/memory.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + Memory Management ================= diff --git a/docs/source/reference/types.rst b/docs/source/reference/types.rst index 774714c53..4591a8905 100644 --- a/docs/source/reference/types.rst +++ b/docs/source/reference/types.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + CUDA-Specific Types ==================== diff --git a/docs/source/user/bindings.rst b/docs/source/user/bindings.rst index d8425a91f..d675e4a2e 100644 --- a/docs/source/user/bindings.rst +++ b/docs/source/user/bindings.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + CUDA Bindings ============= diff --git a/docs/source/user/caching.rst b/docs/source/user/caching.rst index 06c84ff77..9f6b04581 100644 --- a/docs/source/user/caching.rst +++ b/docs/source/user/caching.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + On-disk Kernel Caching ====================== diff --git a/docs/source/user/cooperative_groups.rst b/docs/source/user/cooperative_groups.rst index 0ce70614d..a9383bf5b 100644 --- a/docs/source/user/cooperative_groups.rst +++ b/docs/source/user/cooperative_groups.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + ================== Cooperative Groups ================== diff --git a/docs/source/user/cuda_array_interface.rst b/docs/source/user/cuda_array_interface.rst index 656738e48..596a98f9f 100644 --- a/docs/source/user/cuda_array_interface.rst +++ b/docs/source/user/cuda_array_interface.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _cuda-array-interface: ================================ diff --git a/docs/source/user/cuda_compilation.rst b/docs/source/user/cuda_compilation.rst index f4d67f989..312de8bdd 100644 --- a/docs/source/user/cuda_compilation.rst +++ b/docs/source/user/cuda_compilation.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _cuda_compilation: diff --git a/docs/source/user/cuda_ffi.rst b/docs/source/user/cuda_ffi.rst index 73d1b41eb..5b814a8be 100644 --- a/docs/source/user/cuda_ffi.rst +++ b/docs/source/user/cuda_ffi.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _cuda_ffi: diff --git a/docs/source/user/cudapysupported.rst b/docs/source/user/cudapysupported.rst index 8c11cc545..a62205cf6 100644 --- a/docs/source/user/cudapysupported.rst +++ b/docs/source/user/cudapysupported.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + ======================================== Supported Python features in CUDA Python ======================================== diff --git a/docs/source/user/device-functions.rst b/docs/source/user/device-functions.rst index 4fba8c66f..3436f59d3 100644 --- a/docs/source/user/device-functions.rst +++ b/docs/source/user/device-functions.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + Writing Device Functions ======================== diff --git a/docs/source/user/device-management.rst b/docs/source/user/device-management.rst index 12878961d..4e6f66ba4 100644 --- a/docs/source/user/device-management.rst +++ b/docs/source/user/device-management.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + Device management ================= diff --git a/docs/source/user/examples.rst b/docs/source/user/examples.rst index ac833810a..b6aa692dc 100644 --- a/docs/source/user/examples.rst +++ b/docs/source/user/examples.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _numba-cuda-examples: ======== diff --git a/docs/source/user/external-memory.rst b/docs/source/user/external-memory.rst index d8f0aba6b..f69b41395 100644 --- a/docs/source/user/external-memory.rst +++ b/docs/source/user/external-memory.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _cuda-emm-plugin: ================================================= diff --git a/docs/source/user/faq.rst b/docs/source/user/faq.rst index b4392e6ab..5dc91f840 100644 --- a/docs/source/user/faq.rst +++ b/docs/source/user/faq.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _cudafaq: diff --git a/docs/source/user/fastmath.rst b/docs/source/user/fastmath.rst index fb9de10ea..72dcfc477 100644 --- a/docs/source/user/fastmath.rst +++ b/docs/source/user/fastmath.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _cuda-fast-math: diff --git a/docs/source/user/index.rst b/docs/source/user/index.rst index 21088c492..988fd015f 100644 --- a/docs/source/user/index.rst +++ b/docs/source/user/index.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _cuda-index: diff --git a/docs/source/user/installation.rst b/docs/source/user/installation.rst index 35818fbc7..8c2afdfdd 100644 --- a/docs/source/user/installation.rst +++ b/docs/source/user/installation.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _numba-cuda-installation: ============ diff --git a/docs/source/user/intrinsics.rst b/docs/source/user/intrinsics.rst index 4dc342b89..4abe7d1c4 100644 --- a/docs/source/user/intrinsics.rst +++ b/docs/source/user/intrinsics.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + Supported Atomic Operations =========================== diff --git a/docs/source/user/ipc.rst b/docs/source/user/ipc.rst index ce0f508e5..904f1fd10 100644 --- a/docs/source/user/ipc.rst +++ b/docs/source/user/ipc.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + =================== Sharing CUDA Memory =================== diff --git a/docs/source/user/kernels.rst b/docs/source/user/kernels.rst index a45e49c86..5187cbad1 100644 --- a/docs/source/user/kernels.rst +++ b/docs/source/user/kernels.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _writing-cuda-kernels: ==================== diff --git a/docs/source/user/memory.rst b/docs/source/user/memory.rst index 87fa0f651..be4236619 100644 --- a/docs/source/user/memory.rst +++ b/docs/source/user/memory.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + ================= Memory management ================= diff --git a/docs/source/user/minor_version_compatibility.rst b/docs/source/user/minor_version_compatibility.rst index 591109d10..3ddda1d3d 100644 --- a/docs/source/user/minor_version_compatibility.rst +++ b/docs/source/user/minor_version_compatibility.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _minor-version-compatibility: CUDA Minor Version Compatibility diff --git a/docs/source/user/random.rst b/docs/source/user/random.rst index 11e14ad4d..d58692c4d 100644 --- a/docs/source/user/random.rst +++ b/docs/source/user/random.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _cuda-random: diff --git a/docs/source/user/reduction.rst b/docs/source/user/reduction.rst index 674728408..4caef5409 100644 --- a/docs/source/user/reduction.rst +++ b/docs/source/user/reduction.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + GPU Reduction ============== diff --git a/docs/source/user/simulator.rst b/docs/source/user/simulator.rst index b10a0e874..4a34cc00f 100644 --- a/docs/source/user/simulator.rst +++ b/docs/source/user/simulator.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + .. _simulator: diff --git a/docs/source/user/ufunc.rst b/docs/source/user/ufunc.rst index ddd7eb1ad..a3e529c98 100644 --- a/docs/source/user/ufunc.rst +++ b/docs/source/user/ufunc.rst @@ -1,3 +1,7 @@ +.. + SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause + CUDA Ufuncs and Generalized Ufuncs ================================== diff --git a/numba_cuda/__init__.py b/numba_cuda/__init__.py index e1e1f077f..16b835504 100644 --- a/numba_cuda/__init__.py +++ b/numba_cuda/__init__.py @@ -1,4 +1,5 @@ -# Copyright (c) 2024, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause from numba_cuda._version import __version__ diff --git a/numba_cuda/_version.py b/numba_cuda/_version.py index 01fe47f9f..b5622732a 100644 --- a/numba_cuda/_version.py +++ b/numba_cuda/_version.py @@ -1,16 +1,5 @@ -# Copyright (c) 2024, NVIDIA CORPORATION. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause import importlib.resources diff --git a/numba_cuda/numba/cuda/__init__.py b/numba_cuda/numba/cuda/__init__.py index 0465e1903..547e0341b 100644 --- a/numba_cuda/numba/cuda/__init__.py +++ b/numba_cuda/numba/cuda/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import importlib from numba.core import config from .utils import _readenv diff --git a/numba_cuda/numba/cuda/_internal/cuda_bf16.py b/numba_cuda/numba/cuda/_internal/cuda_bf16.py index 5adf68fdb..a1cabfdff 100644 --- a/numba_cuda/numba/cuda/_internal/cuda_bf16.py +++ b/numba_cuda/numba/cuda/_internal/cuda_bf16.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Automatically generated by Numbast Static Binding Generator # Generator Information: # Ast_canopy version: 0.3.0 diff --git a/numba_cuda/numba/cuda/_internal/cuda_fp16.py b/numba_cuda/numba/cuda/_internal/cuda_fp16.py index 9badedb28..221c93510 100644 --- a/numba_cuda/numba/cuda/_internal/cuda_fp16.py +++ b/numba_cuda/numba/cuda/_internal/cuda_fp16.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Automatically generated by Numbast Static Binding Generator # Generator Information: # Ast_canopy version: 0.3.0 diff --git a/numba_cuda/numba/cuda/api.py b/numba_cuda/numba/cuda/api.py index 6b0fcfb0f..a0c5dc45e 100644 --- a/numba_cuda/numba/cuda/api.py +++ b/numba_cuda/numba/cuda/api.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ API that are reported to numba.cuda """ diff --git a/numba_cuda/numba/cuda/api_util.py b/numba_cuda/numba/cuda/api_util.py index bc5bb8e41..60cd29da5 100644 --- a/numba_cuda/numba/cuda/api_util.py +++ b/numba_cuda/numba/cuda/api_util.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np diff --git a/numba_cuda/numba/cuda/args.py b/numba_cuda/numba/cuda/args.py index ff204c619..e411daca3 100644 --- a/numba_cuda/numba/cuda/args.py +++ b/numba_cuda/numba/cuda/args.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Hints to wrap Kernel arguments to indicate how to manage host-device memory transfers before & after the kernel call. diff --git a/numba_cuda/numba/cuda/bf16.py b/numba_cuda/numba/cuda/bf16.py index 1ef6a370a..cb2f41dc6 100644 --- a/numba_cuda/numba/cuda/bf16.py +++ b/numba_cuda/numba/cuda/bf16.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda._internal.cuda_bf16 import ( _type_class___nv_bfloat16, nv_bfloat16 as bfloat16, diff --git a/numba_cuda/numba/cuda/cg.py b/numba_cuda/numba/cuda/cg.py index 78e3fc6f9..fa55783dd 100644 --- a/numba_cuda/numba/cuda/cg.py +++ b/numba_cuda/numba/cuda/cg.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.core import types from numba.core.extending import overload, overload_method from numba.core.typing import signature diff --git a/numba_cuda/numba/cuda/cgutils.py b/numba_cuda/numba/cuda/cgutils.py index 8831f9914..0427fa500 100644 --- a/numba_cuda/numba/cuda/cgutils.py +++ b/numba_cuda/numba/cuda/cgutils.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Generic helpers for LLVM code generation. """ diff --git a/numba_cuda/numba/cuda/codegen.py b/numba_cuda/numba/cuda/codegen.py index 258c3c46d..9c34acd65 100644 --- a/numba_cuda/numba/cuda/codegen.py +++ b/numba_cuda/numba/cuda/codegen.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from llvmlite import ir from numba.core import config diff --git a/numba_cuda/numba/cuda/compiler.py b/numba_cuda/numba/cuda/compiler.py index 2a3217793..321230496 100644 --- a/numba_cuda/numba/cuda/compiler.py +++ b/numba_cuda/numba/cuda/compiler.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from llvmlite import ir from collections import namedtuple from warnings import warn, catch_warnings, simplefilter diff --git a/numba_cuda/numba/cuda/core/analysis.py b/numba_cuda/numba/cuda/core/analysis.py index 0c9af9159..945c1dab8 100644 --- a/numba_cuda/numba/cuda/core/analysis.py +++ b/numba_cuda/numba/cuda/core/analysis.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from collections import namedtuple from numba import types from numba.core import consts, ir diff --git a/numba_cuda/numba/cuda/core/caching.py b/numba_cuda/numba/cuda/core/caching.py index 75edcd4a7..0158c2b1b 100644 --- a/numba_cuda/numba/cuda/core/caching.py +++ b/numba_cuda/numba/cuda/core/caching.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from abc import abstractmethod, ABCMeta import itertools import numba diff --git a/numba_cuda/numba/cuda/core/callconv.py b/numba_cuda/numba/cuda/core/callconv.py index 3f179d28e..e289e5da3 100644 --- a/numba_cuda/numba/cuda/core/callconv.py +++ b/numba_cuda/numba/cuda/core/callconv.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.core import types from numba.cuda import cgutils from collections import namedtuple diff --git a/numba_cuda/numba/cuda/core/codegen.py b/numba_cuda/numba/cuda/core/codegen.py index 3ed9358e1..025b93625 100644 --- a/numba_cuda/numba/cuda/core/codegen.py +++ b/numba_cuda/numba/cuda/core/codegen.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from abc import abstractmethod, ABCMeta from numba.misc.llvm_pass_timings import PassTimingsCollection diff --git a/numba_cuda/numba/cuda/core/compiler.py b/numba_cuda/numba/cuda/core/compiler.py index 48a4b3f28..1c1da69da 100644 --- a/numba_cuda/numba/cuda/core/compiler.py +++ b/numba_cuda/numba/cuda/core/compiler.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.core.tracing import event from numba.core import callconv, bytecode, config, errors diff --git a/numba_cuda/numba/cuda/core/compiler_machinery.py b/numba_cuda/numba/cuda/core/compiler_machinery.py index 94da5c0a6..996015958 100644 --- a/numba_cuda/numba/cuda/core/compiler_machinery.py +++ b/numba_cuda/numba/cuda/core/compiler_machinery.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import timeit from abc import abstractmethod, ABCMeta from collections import namedtuple, OrderedDict diff --git a/numba_cuda/numba/cuda/core/interpreter.py b/numba_cuda/numba/cuda/core/interpreter.py index 2666c47a8..e8e347f94 100644 --- a/numba_cuda/numba/cuda/core/interpreter.py +++ b/numba_cuda/numba/cuda/core/interpreter.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import builtins import collections import dis diff --git a/numba_cuda/numba/cuda/core/ir_utils.py b/numba_cuda/numba/cuda/core/ir_utils.py index 42e500d8f..eaed25dba 100644 --- a/numba_cuda/numba/cuda/core/ir_utils.py +++ b/numba_cuda/numba/cuda/core/ir_utils.py @@ -1,7 +1,6 @@ -# -# Copyright (c) 2017 Intel Corporation +# SPDX-FileCopyrightText: Copyright (c) 2017 Intel Corporation +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: BSD-2-Clause -# import numpy import math diff --git a/numba_cuda/numba/cuda/core/sigutils.py b/numba_cuda/numba/cuda/core/sigutils.py index 26cdf5156..7afd212c3 100644 --- a/numba_cuda/numba/cuda/core/sigutils.py +++ b/numba_cuda/numba/cuda/core/sigutils.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.core import types, typing diff --git a/numba_cuda/numba/cuda/core/typed_passes.py b/numba_cuda/numba/cuda/core/typed_passes.py index 95f4d6c04..b6a4ee19f 100644 --- a/numba_cuda/numba/cuda/core/typed_passes.py +++ b/numba_cuda/numba/cuda/core/typed_passes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import abc from contextlib import contextmanager from collections import defaultdict, namedtuple diff --git a/numba_cuda/numba/cuda/core/untyped_passes.py b/numba_cuda/numba/cuda/core/untyped_passes.py index c016a507e..2785036d7 100644 --- a/numba_cuda/numba/cuda/core/untyped_passes.py +++ b/numba_cuda/numba/cuda/core/untyped_passes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from collections import defaultdict, namedtuple from contextlib import contextmanager from copy import deepcopy, copy diff --git a/numba_cuda/numba/cuda/cuda_paths.py b/numba_cuda/numba/cuda/cuda_paths.py index 1782fd930..d8a37a59b 100644 --- a/numba_cuda/numba/cuda/cuda_paths.py +++ b/numba_cuda/numba/cuda/cuda_paths.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import sys import re import os diff --git a/numba_cuda/numba/cuda/cudadecl.py b/numba_cuda/numba/cuda/cudadecl.py index 72743e9a7..74dbe92af 100644 --- a/numba_cuda/numba/cuda/cudadecl.py +++ b/numba_cuda/numba/cuda/cudadecl.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.core import errors, types from numba.core.typing.npydecl import ( parse_dtype, diff --git a/numba_cuda/numba/cuda/cudadrv/__init__.py b/numba_cuda/numba/cuda/cudadrv/__init__.py index c7d60a5e3..1128910bc 100644 --- a/numba_cuda/numba/cuda/cudadrv/__init__.py +++ b/numba_cuda/numba/cuda/cudadrv/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """CUDA Driver - Driver API binding diff --git a/numba_cuda/numba/cuda/cudadrv/devicearray.py b/numba_cuda/numba/cuda/cudadrv/devicearray.py index 819d8a6e4..e48e66ac7 100644 --- a/numba_cuda/numba/cuda/cudadrv/devicearray.py +++ b/numba_cuda/numba/cuda/cudadrv/devicearray.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ A CUDA ND Array is recognized by checking the __cuda_memory__ attribute on the object. If it exists and evaluate to True, it must define shape, diff --git a/numba_cuda/numba/cuda/cudadrv/devices.py b/numba_cuda/numba/cuda/cudadrv/devices.py index 158ad0786..19ac5e7b8 100644 --- a/numba_cuda/numba/cuda/cudadrv/devices.py +++ b/numba_cuda/numba/cuda/cudadrv/devices.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Expose each GPU devices directly. diff --git a/numba_cuda/numba/cuda/cudadrv/driver.py b/numba_cuda/numba/cuda/cudadrv/driver.py index 22987d573..1c64dac08 100644 --- a/numba_cuda/numba/cuda/cudadrv/driver.py +++ b/numba_cuda/numba/cuda/cudadrv/driver.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ CUDA driver bridge implementation diff --git a/numba_cuda/numba/cuda/cudadrv/drvapi.py b/numba_cuda/numba/cuda/cudadrv/drvapi.py index 1aeeecc44..889d0ea69 100644 --- a/numba_cuda/numba/cuda/cudadrv/drvapi.py +++ b/numba_cuda/numba/cuda/cudadrv/drvapi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from ctypes import ( c_byte, c_char_p, diff --git a/numba_cuda/numba/cuda/cudadrv/dummyarray.py b/numba_cuda/numba/cuda/cudadrv/dummyarray.py index a3e21b633..5f6aaec2b 100644 --- a/numba_cuda/numba/cuda/cudadrv/dummyarray.py +++ b/numba_cuda/numba/cuda/cudadrv/dummyarray.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from collections import namedtuple import itertools import functools diff --git a/numba_cuda/numba/cuda/cudadrv/enums.py b/numba_cuda/numba/cuda/cudadrv/enums.py index 987234b6f..cfef2013f 100644 --- a/numba_cuda/numba/cuda/cudadrv/enums.py +++ b/numba_cuda/numba/cuda/cudadrv/enums.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Enum values for CUDA driver. Information about the values can be found on the official NVIDIA documentation website. diff --git a/numba_cuda/numba/cuda/cudadrv/error.py b/numba_cuda/numba/cuda/cudadrv/error.py index b40f0abdb..c3081d0c4 100644 --- a/numba_cuda/numba/cuda/cudadrv/error.py +++ b/numba_cuda/numba/cuda/cudadrv/error.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + + class CudaDriverError(Exception): pass diff --git a/numba_cuda/numba/cuda/cudadrv/libs.py b/numba_cuda/numba/cuda/cudadrv/libs.py index ea6d61201..09f50ee92 100644 --- a/numba_cuda/numba/cuda/cudadrv/libs.py +++ b/numba_cuda/numba/cuda/cudadrv/libs.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """CUDA Toolkit libraries lookup utilities. CUDA Toolkit libraries can be available via either: diff --git a/numba_cuda/numba/cuda/cudadrv/linkable_code.py b/numba_cuda/numba/cuda/cudadrv/linkable_code.py index a9d09f1d0..106d84ed3 100644 --- a/numba_cuda/numba/cuda/cudadrv/linkable_code.py +++ b/numba_cuda/numba/cuda/cudadrv/linkable_code.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import io from .mappings import FILE_EXTENSION_MAP diff --git a/numba_cuda/numba/cuda/cudadrv/mappings.py b/numba_cuda/numba/cuda/cudadrv/mappings.py index 3ddc60724..a68d64606 100644 --- a/numba_cuda/numba/cuda/cudadrv/mappings.py +++ b/numba_cuda/numba/cuda/cudadrv/mappings.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import config from . import enums diff --git a/numba_cuda/numba/cuda/cudadrv/ndarray.py b/numba_cuda/numba/cuda/cudadrv/ndarray.py index bca40dfd9..9fd90923f 100644 --- a/numba_cuda/numba/cuda/cudadrv/ndarray.py +++ b/numba_cuda/numba/cuda/cudadrv/ndarray.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.cudadrv import devices, driver from numba.core.registry import cpu_target diff --git a/numba_cuda/numba/cuda/cudadrv/nvrtc.py b/numba_cuda/numba/cuda/cudadrv/nvrtc.py index 800d25b79..1a1035a25 100644 --- a/numba_cuda/numba/cuda/cudadrv/nvrtc.py +++ b/numba_cuda/numba/cuda/cudadrv/nvrtc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from ctypes import byref, c_char, c_char_p, c_int, c_size_t, c_void_p, POINTER from enum import IntEnum from numba.cuda.cudadrv.error import ( diff --git a/numba_cuda/numba/cuda/cudadrv/nvvm.py b/numba_cuda/numba/cuda/cudadrv/nvvm.py index 6606ebf74..a8850251e 100644 --- a/numba_cuda/numba/cuda/cudadrv/nvvm.py +++ b/numba_cuda/numba/cuda/cudadrv/nvvm.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ This is a direct translation of nvvm.h """ diff --git a/numba_cuda/numba/cuda/cudadrv/rtapi.py b/numba_cuda/numba/cuda/cudadrv/rtapi.py index 4d30f5c63..e95cfabf3 100644 --- a/numba_cuda/numba/cuda/cudadrv/rtapi.py +++ b/numba_cuda/numba/cuda/cudadrv/rtapi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Declarations of the Runtime API functions. """ diff --git a/numba_cuda/numba/cuda/cudadrv/runtime.py b/numba_cuda/numba/cuda/cudadrv/runtime.py index 4ffc66b00..9fa88282f 100644 --- a/numba_cuda/numba/cuda/cudadrv/runtime.py +++ b/numba_cuda/numba/cuda/cudadrv/runtime.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Former CUDA Runtime wrapper. diff --git a/numba_cuda/numba/cuda/cudaimpl.py b/numba_cuda/numba/cuda/cudaimpl.py index 0a1063dd9..23c5d9045 100644 --- a/numba_cuda/numba/cuda/cudaimpl.py +++ b/numba_cuda/numba/cuda/cudaimpl.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from functools import reduce import operator import math diff --git a/numba_cuda/numba/cuda/cudamath.py b/numba_cuda/numba/cuda/cudamath.py index 6c146791b..1cc5a5ac8 100644 --- a/numba_cuda/numba/cuda/cudamath.py +++ b/numba_cuda/numba/cuda/cudamath.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import math from numba.core import types from numba.cuda.typing.templates import ConcreteTemplate, signature, Registry diff --git a/numba_cuda/numba/cuda/debuginfo.py b/numba_cuda/numba/cuda/debuginfo.py index b69a226dd..54195cd9e 100644 --- a/numba_cuda/numba/cuda/debuginfo.py +++ b/numba_cuda/numba/cuda/debuginfo.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import os from llvmlite import ir diff --git a/numba_cuda/numba/cuda/decorators.py b/numba_cuda/numba/cuda/decorators.py index 3f6718a60..02b904319 100644 --- a/numba_cuda/numba/cuda/decorators.py +++ b/numba_cuda/numba/cuda/decorators.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from warnings import warn from numba.core import types, config from numba.core.errors import DeprecationError, NumbaInvalidConfigWarning diff --git a/numba_cuda/numba/cuda/descriptor.py b/numba_cuda/numba/cuda/descriptor.py index 965f301be..39928a139 100644 --- a/numba_cuda/numba/cuda/descriptor.py +++ b/numba_cuda/numba/cuda/descriptor.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.core.descriptors import TargetDescriptor from numba.core.options import TargetOptions from .target import CUDATargetContext, CUDATypingContext diff --git a/numba_cuda/numba/cuda/device_init.py b/numba_cuda/numba/cuda/device_init.py index 1aef9b76f..b42585785 100644 --- a/numba_cuda/numba/cuda/device_init.py +++ b/numba_cuda/numba/cuda/device_init.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Re export import sys from numba.cuda import cg diff --git a/numba_cuda/numba/cuda/deviceufunc.py b/numba_cuda/numba/cuda/deviceufunc.py index f04bde8e9..6905ae3e5 100644 --- a/numba_cuda/numba/cuda/deviceufunc.py +++ b/numba_cuda/numba/cuda/deviceufunc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Implements custom ufunc dispatch mechanism for non-CPU devices. """ diff --git a/numba_cuda/numba/cuda/dispatcher.py b/numba_cuda/numba/cuda/dispatcher.py index 04d9d84a2..5958206fe 100644 --- a/numba_cuda/numba/cuda/dispatcher.py +++ b/numba_cuda/numba/cuda/dispatcher.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np import os import sys diff --git a/numba_cuda/numba/cuda/errors.py b/numba_cuda/numba/cuda/errors.py index 62f25708b..4043dec34 100644 --- a/numba_cuda/numba/cuda/errors.py +++ b/numba_cuda/numba/cuda/errors.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numbers from numba.core.errors import LoweringError diff --git a/numba_cuda/numba/cuda/extending.py b/numba_cuda/numba/cuda/extending.py index aa8b9a25b..2f1f39868 100644 --- a/numba_cuda/numba/cuda/extending.py +++ b/numba_cuda/numba/cuda/extending.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Added for symmetry with the core API """ diff --git a/numba_cuda/numba/cuda/flags.py b/numba_cuda/numba/cuda/flags.py index 934291f70..3d754ccb7 100644 --- a/numba_cuda/numba/cuda/flags.py +++ b/numba_cuda/numba/cuda/flags.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.core.targetconfig import TargetConfig, Option from numba.core import cpu diff --git a/numba_cuda/numba/cuda/fp16.py b/numba_cuda/numba/cuda/fp16.py index 9ce2f461d..966f7fb22 100644 --- a/numba_cuda/numba/cuda/fp16.py +++ b/numba_cuda/numba/cuda/fp16.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numba.core.types as types from numba.cuda._internal.cuda_fp16 import ( typing_registry, diff --git a/numba_cuda/numba/cuda/initialize.py b/numba_cuda/numba/cuda/initialize.py index 832891a66..ec2ae5a3b 100644 --- a/numba_cuda/numba/cuda/initialize.py +++ b/numba_cuda/numba/cuda/initialize.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + + def initialize_all(): # Import models to register them with the data model manager import numba.cuda.models # noqa: F401 diff --git a/numba_cuda/numba/cuda/intrinsic_wrapper.py b/numba_cuda/numba/cuda/intrinsic_wrapper.py index 6d46f0fe8..5877ad65a 100644 --- a/numba_cuda/numba/cuda/intrinsic_wrapper.py +++ b/numba_cuda/numba/cuda/intrinsic_wrapper.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from .decorators import jit import numba diff --git a/numba_cuda/numba/cuda/intrinsics.py b/numba_cuda/numba/cuda/intrinsics.py index cf608ec57..7230ef824 100644 --- a/numba_cuda/numba/cuda/intrinsics.py +++ b/numba_cuda/numba/cuda/intrinsics.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from llvmlite import ir from numba import cuda, types diff --git a/numba_cuda/numba/cuda/itanium_mangler.py b/numba_cuda/numba/cuda/itanium_mangler.py index b14683d4a..f86f5ddf4 100644 --- a/numba_cuda/numba/cuda/itanium_mangler.py +++ b/numba_cuda/numba/cuda/itanium_mangler.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Itanium CXX ABI Mangler diff --git a/numba_cuda/numba/cuda/kernels/__init__.py b/numba_cuda/numba/cuda/kernels/__init__.py index e69de29bb..6d4c2c442 100644 --- a/numba_cuda/numba/cuda/kernels/__init__.py +++ b/numba_cuda/numba/cuda/kernels/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause diff --git a/numba_cuda/numba/cuda/kernels/reduction.py b/numba_cuda/numba/cuda/kernels/reduction.py index 52d362599..129f525bf 100644 --- a/numba_cuda/numba/cuda/kernels/reduction.py +++ b/numba_cuda/numba/cuda/kernels/reduction.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ A library written in CUDA Python for generating reduction kernels """ diff --git a/numba_cuda/numba/cuda/kernels/transpose.py b/numba_cuda/numba/cuda/kernels/transpose.py index 1a1af2b41..fd031d21d 100644 --- a/numba_cuda/numba/cuda/kernels/transpose.py +++ b/numba_cuda/numba/cuda/kernels/transpose.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda from numba.cuda.cudadrv.driver import driver import math diff --git a/numba_cuda/numba/cuda/libdevice.py b/numba_cuda/numba/cuda/libdevice.py index 4a066b77b..41b60f24e 100644 --- a/numba_cuda/numba/cuda/libdevice.py +++ b/numba_cuda/numba/cuda/libdevice.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + + def abs(x): """ See https://docs.nvidia.com/cuda/libdevice-users-guide/__nv_abs.html diff --git a/numba_cuda/numba/cuda/libdevicedecl.py b/numba_cuda/numba/cuda/libdevicedecl.py index b1c64bda9..70c56f03a 100644 --- a/numba_cuda/numba/cuda/libdevicedecl.py +++ b/numba_cuda/numba/cuda/libdevicedecl.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda import libdevice, libdevicefuncs from numba.cuda.typing.templates import ConcreteTemplate, Registry diff --git a/numba_cuda/numba/cuda/libdevicefuncs.py b/numba_cuda/numba/cuda/libdevicefuncs.py index 37fe447ae..50b7ac5e9 100644 --- a/numba_cuda/numba/cuda/libdevicefuncs.py +++ b/numba_cuda/numba/cuda/libdevicefuncs.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from collections import namedtuple from textwrap import indent diff --git a/numba_cuda/numba/cuda/libdeviceimpl.py b/numba_cuda/numba/cuda/libdeviceimpl.py index 09a162c03..6a052b2f6 100644 --- a/numba_cuda/numba/cuda/libdeviceimpl.py +++ b/numba_cuda/numba/cuda/libdeviceimpl.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from llvmlite import ir from numba.core import types from numba.cuda import cgutils diff --git a/numba_cuda/numba/cuda/locks.py b/numba_cuda/numba/cuda/locks.py index 5b03a06d8..978c7ef56 100644 --- a/numba_cuda/numba/cuda/locks.py +++ b/numba_cuda/numba/cuda/locks.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from threading import Lock from functools import wraps diff --git a/numba_cuda/numba/cuda/lowering.py b/numba_cuda/numba/cuda/lowering.py index 2f80cfc2a..aeee3dfd8 100644 --- a/numba_cuda/numba/cuda/lowering.py +++ b/numba_cuda/numba/cuda/lowering.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from collections import namedtuple, defaultdict import operator import warnings diff --git a/numba_cuda/numba/cuda/mathimpl.py b/numba_cuda/numba/cuda/mathimpl.py index 7d159aea6..bc1aedb40 100644 --- a/numba_cuda/numba/cuda/mathimpl.py +++ b/numba_cuda/numba/cuda/mathimpl.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import math import operator from llvmlite import ir diff --git a/numba_cuda/numba/cuda/memory_management/__init__.py b/numba_cuda/numba/cuda/memory_management/__init__.py index 9dcf44218..452e2a556 100644 --- a/numba_cuda/numba/cuda/memory_management/__init__.py +++ b/numba_cuda/numba/cuda/memory_management/__init__.py @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.memory_management.nrt import rtsys # noqa: F401 diff --git a/numba_cuda/numba/cuda/memory_management/memsys.cu b/numba_cuda/numba/cuda/memory_management/memsys.cu index ed1133dbd..1a3b0158b 100644 --- a/numba_cuda/numba/cuda/memory_management/memsys.cu +++ b/numba_cuda/numba/cuda/memory_management/memsys.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + #include "memsys.cuh" __device__ size_t memsys_size = sizeof(NRT_MemSys); diff --git a/numba_cuda/numba/cuda/memory_management/memsys.cuh b/numba_cuda/numba/cuda/memory_management/memsys.cuh index 74cfefc49..36ba63a69 100644 --- a/numba_cuda/numba/cuda/memory_management/memsys.cuh +++ b/numba_cuda/numba/cuda/memory_management/memsys.cuh @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + #include // Globally needed variables diff --git a/numba_cuda/numba/cuda/memory_management/nrt.cu b/numba_cuda/numba/cuda/memory_management/nrt.cu index 0e3e44071..729c8d8c4 100644 --- a/numba_cuda/numba/cuda/memory_management/nrt.cu +++ b/numba_cuda/numba/cuda/memory_management/nrt.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + #ifndef _NRT_H #define _NRT_H diff --git a/numba_cuda/numba/cuda/memory_management/nrt.cuh b/numba_cuda/numba/cuda/memory_management/nrt.cuh index 8944733f1..b79dbc7fd 100644 --- a/numba_cuda/numba/cuda/memory_management/nrt.cuh +++ b/numba_cuda/numba/cuda/memory_management/nrt.cuh @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + #include typedef void (*NRT_dtor_function)(void* ptr, size_t size, void* info); diff --git a/numba_cuda/numba/cuda/memory_management/nrt.py b/numba_cuda/numba/cuda/memory_management/nrt.py index ec69246e9..dac3ec746 100644 --- a/numba_cuda/numba/cuda/memory_management/nrt.py +++ b/numba_cuda/numba/cuda/memory_management/nrt.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import ctypes import os from functools import wraps diff --git a/numba_cuda/numba/cuda/models.py b/numba_cuda/numba/cuda/models.py index f9735d7fc..a98af1f6d 100644 --- a/numba_cuda/numba/cuda/models.py +++ b/numba_cuda/numba/cuda/models.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import functools from llvmlite import ir diff --git a/numba_cuda/numba/cuda/nvvmutils.py b/numba_cuda/numba/cuda/nvvmutils.py index 9f8e3cf9d..4147eef4f 100644 --- a/numba_cuda/numba/cuda/nvvmutils.py +++ b/numba_cuda/numba/cuda/nvvmutils.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import itertools from llvmlite import ir from numba.core import targetconfig diff --git a/numba_cuda/numba/cuda/printimpl.py b/numba_cuda/numba/cuda/printimpl.py index 0a4fb4347..558335191 100644 --- a/numba_cuda/numba/cuda/printimpl.py +++ b/numba_cuda/numba/cuda/printimpl.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from functools import singledispatch from llvmlite import ir from numba.core import types diff --git a/numba_cuda/numba/cuda/random.py b/numba_cuda/numba/cuda/random.py index 82905e8ac..c91fd4c8f 100644 --- a/numba_cuda/numba/cuda/random.py +++ b/numba_cuda/numba/cuda/random.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import math from numba import ( diff --git a/numba_cuda/numba/cuda/reshape_funcs.cu b/numba_cuda/numba/cuda/reshape_funcs.cu index 7dfc19db7..4a844054e 100644 --- a/numba_cuda/numba/cuda/reshape_funcs.cu +++ b/numba_cuda/numba/cuda/reshape_funcs.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + /* * Handle reshaping of zero-sized array. * See numba_attempt_nocopy_reshape() below. diff --git a/numba_cuda/numba/cuda/serialize.py b/numba_cuda/numba/cuda/serialize.py index 0c23198d8..03579fa3d 100644 --- a/numba_cuda/numba/cuda/serialize.py +++ b/numba_cuda/numba/cuda/serialize.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Serialization support for compiled functions. """ diff --git a/numba_cuda/numba/cuda/simulator/__init__.py b/numba_cuda/numba/cuda/simulator/__init__.py index 966a4e61a..754d9c1d3 100644 --- a/numba_cuda/numba/cuda/simulator/__init__.py +++ b/numba_cuda/numba/cuda/simulator/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import sys from .api import * diff --git a/numba_cuda/numba/cuda/simulator/_internal/__init__.py b/numba_cuda/numba/cuda/simulator/_internal/__init__.py index 92467a577..f7463e48e 100644 --- a/numba_cuda/numba/cuda/simulator/_internal/__init__.py +++ b/numba_cuda/numba/cuda/simulator/_internal/__init__.py @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.simulator._internal import cuda_bf16 # noqa: F401 diff --git a/numba_cuda/numba/cuda/simulator/_internal/cuda_bf16.py b/numba_cuda/numba/cuda/simulator/_internal/cuda_bf16.py index e69de29bb..6d4c2c442 100644 --- a/numba_cuda/numba/cuda/simulator/_internal/cuda_bf16.py +++ b/numba_cuda/numba/cuda/simulator/_internal/cuda_bf16.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause diff --git a/numba_cuda/numba/cuda/simulator/api.py b/numba_cuda/numba/cuda/simulator/api.py index c74327a44..33476ac63 100644 --- a/numba_cuda/numba/cuda/simulator/api.py +++ b/numba_cuda/numba/cuda/simulator/api.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Contains CUDA API functions """ diff --git a/numba_cuda/numba/cuda/simulator/bf16.py b/numba_cuda/numba/cuda/simulator/bf16.py index b9caa1c4c..90225cf99 100644 --- a/numba_cuda/numba/cuda/simulator/bf16.py +++ b/numba_cuda/numba/cuda/simulator/bf16.py @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + bfloat16 = None diff --git a/numba_cuda/numba/cuda/simulator/compiler.py b/numba_cuda/numba/cuda/simulator/compiler.py index fd8b4341f..910a80352 100644 --- a/numba_cuda/numba/cuda/simulator/compiler.py +++ b/numba_cuda/numba/cuda/simulator/compiler.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ The compiler is not implemented in the simulator. This module provides a stub to allow tests to import successfully. diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/__init__.py b/numba_cuda/numba/cuda/simulator/cudadrv/__init__.py index 128579600..21269c97f 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/__init__.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.simulator.cudadrv import ( devicearray, devices, diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/devicearray.py b/numba_cuda/numba/cuda/simulator/cudadrv/devicearray.py index 47d7777af..c177ca860 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/devicearray.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/devicearray.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ The Device Array API is not implemented in the simulator. This module provides stubs to allow tests to import correctly. diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/devices.py b/numba_cuda/numba/cuda/simulator/cudadrv/devices.py index 433316262..fe0c50bff 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/devices.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/devices.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from collections import namedtuple diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/driver.py b/numba_cuda/numba/cuda/simulator/cudadrv/driver.py index 8668b53b9..821d7af84 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/driver.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/driver.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Most of the driver API is unsupported in the simulator, but some stubs are provided to allow tests to import correctly. diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/drvapi.py b/numba_cuda/numba/cuda/simulator/cudadrv/drvapi.py index 8229cba8d..4c6a0d5a6 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/drvapi.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/drvapi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ drvapi is not implemented in the simulator, but this module exists to allow tests to import correctly. diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/dummyarray.py b/numba_cuda/numba/cuda/simulator/cudadrv/dummyarray.py index adabaa782..732d464ce 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/dummyarray.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/dummyarray.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Dummy arrays are not implemented in the simulator. This file allows the dummy # array tests to be imported, but they are skipped on the simulator. diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/error.py b/numba_cuda/numba/cuda/simulator/cudadrv/error.py index eaaa2884a..7ca5fd5ce 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/error.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/error.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + + class CudaSupportError(RuntimeError): pass diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/libs.py b/numba_cuda/numba/cuda/simulator/cudadrv/libs.py index 4f51b917f..2e7649eed 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/libs.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/libs.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + + def check_static_lib(lib): raise FileNotFoundError("Linking libraries not supported by cudasim") diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/linkable_code.py b/numba_cuda/numba/cuda/simulator/cudadrv/linkable_code.py index 63ba7b439..0a1b689be 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/linkable_code.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/linkable_code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + + class LinkableCode: """An object that holds code to be linked from memory. diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/nvrtc.py b/numba_cuda/numba/cuda/simulator/cudadrv/nvrtc.py index 734117b8c..c9ba951aa 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/nvrtc.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/nvrtc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ NVVM is not supported in the simulator, but stubs are provided to allow tests to import correctly. diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/nvvm.py b/numba_cuda/numba/cuda/simulator/cudadrv/nvvm.py index 4fa5561db..b114eba9c 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/nvvm.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/nvvm.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ NVVM is not supported in the simulator, but stubs are provided to allow tests to import correctly. diff --git a/numba_cuda/numba/cuda/simulator/cudadrv/runtime.py b/numba_cuda/numba/cuda/simulator/cudadrv/runtime.py index b38abedb6..353a9e0a7 100644 --- a/numba_cuda/numba/cuda/simulator/cudadrv/runtime.py +++ b/numba_cuda/numba/cuda/simulator/cudadrv/runtime.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ The runtime API is unsupported in the simulator, but some stubs are provided to allow tests to import correctly. diff --git a/numba_cuda/numba/cuda/simulator/dispatcher.py b/numba_cuda/numba/cuda/simulator/dispatcher.py index 7d6c740df..4f7ed4548 100644 --- a/numba_cuda/numba/cuda/simulator/dispatcher.py +++ b/numba_cuda/numba/cuda/simulator/dispatcher.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + + class CUDADispatcher: """ Dummy class so that consumers that try to import the real CUDADispatcher diff --git a/numba_cuda/numba/cuda/simulator/kernel.py b/numba_cuda/numba/cuda/simulator/kernel.py index 68778a99e..36cf20a2a 100644 --- a/numba_cuda/numba/cuda/simulator/kernel.py +++ b/numba_cuda/numba/cuda/simulator/kernel.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from contextlib import contextmanager import functools import sys diff --git a/numba_cuda/numba/cuda/simulator/kernelapi.py b/numba_cuda/numba/cuda/simulator/kernelapi.py index eb7eaa985..c4e186431 100644 --- a/numba_cuda/numba/cuda/simulator/kernelapi.py +++ b/numba_cuda/numba/cuda/simulator/kernelapi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Implements the cuda module as called from within an executing kernel (@cuda.jit-decorated function). diff --git a/numba_cuda/numba/cuda/simulator/memory_management/__init__.py b/numba_cuda/numba/cuda/simulator/memory_management/__init__.py index 68de15a20..7d19d8b5a 100644 --- a/numba_cuda/numba/cuda/simulator/memory_management/__init__.py +++ b/numba_cuda/numba/cuda/simulator/memory_management/__init__.py @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from .nrt import rtsys # noqa: F401 diff --git a/numba_cuda/numba/cuda/simulator/memory_management/nrt.py b/numba_cuda/numba/cuda/simulator/memory_management/nrt.py index eafee05b0..87e8407dd 100644 --- a/numba_cuda/numba/cuda/simulator/memory_management/nrt.py +++ b/numba_cuda/numba/cuda/simulator/memory_management/nrt.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import config rtsys = None diff --git a/numba_cuda/numba/cuda/simulator/reduction.py b/numba_cuda/numba/cuda/simulator/reduction.py index 5a3a8e87b..bc7572089 100644 --- a/numba_cuda/numba/cuda/simulator/reduction.py +++ b/numba_cuda/numba/cuda/simulator/reduction.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from functools import reduce as pyreduce diff --git a/numba_cuda/numba/cuda/simulator/vector_types.py b/numba_cuda/numba/cuda/simulator/vector_types.py index 55792d9b8..c9b4a49d7 100644 --- a/numba_cuda/numba/cuda/simulator/vector_types.py +++ b/numba_cuda/numba/cuda/simulator/vector_types.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import types from numba.cuda.stubs import _vector_type_stubs diff --git a/numba_cuda/numba/cuda/simulator_init.py b/numba_cuda/numba/cuda/simulator_init.py index fb2120632..be7048320 100644 --- a/numba_cuda/numba/cuda/simulator_init.py +++ b/numba_cuda/numba/cuda/simulator_init.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # We import * from simulator here because * is imported from simulator_init by # numba.cuda.__init__. from .simulator import * # noqa: F403, F401 diff --git a/numba_cuda/numba/cuda/stubs.py b/numba_cuda/numba/cuda/stubs.py index 7b2599524..64f04fd79 100644 --- a/numba_cuda/numba/cuda/stubs.py +++ b/numba_cuda/numba/cuda/stubs.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ This scripts specifies all PTX special objects. """ diff --git a/numba_cuda/numba/cuda/target.py b/numba_cuda/numba/cuda/target.py index 6015ecdcf..af6988dca 100644 --- a/numba_cuda/numba/cuda/target.py +++ b/numba_cuda/numba/cuda/target.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import re from functools import cached_property import llvmlite.binding as ll diff --git a/numba_cuda/numba/cuda/testing.py b/numba_cuda/numba/cuda/testing.py index dfe78531d..813aa9b97 100644 --- a/numba_cuda/numba/cuda/testing.py +++ b/numba_cuda/numba/cuda/testing.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import os import platform import shutil diff --git a/numba_cuda/numba/cuda/tests/__init__.py b/numba_cuda/numba/cuda/tests/__init__.py index 59aae1cee..feb74ca8b 100644 --- a/numba_cuda/numba/cuda/tests/__init__.py +++ b/numba_cuda/numba/cuda/tests/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from fnmatch import fnmatch from numba.testing import unittest from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/complex_usecases.py b/numba_cuda/numba/cuda/tests/complex_usecases.py index 7bfa9669b..528c96e43 100644 --- a/numba_cuda/numba/cuda/tests/complex_usecases.py +++ b/numba_cuda/numba/cuda/tests/complex_usecases.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import cmath diff --git a/numba_cuda/numba/cuda/tests/core/serialize_usecases.py b/numba_cuda/numba/cuda/tests/core/serialize_usecases.py index e96ca88c1..5f5fb6c2f 100644 --- a/numba_cuda/numba/cuda/tests/core/serialize_usecases.py +++ b/numba_cuda/numba/cuda/tests/core/serialize_usecases.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Separate module with function samples for serialization tests, to avoid issues with __main__. diff --git a/numba_cuda/numba/cuda/tests/core/test_itanium_mangler.py b/numba_cuda/numba/cuda/tests/core/test_itanium_mangler.py index d8d84ee63..e52da4960 100644 --- a/numba_cuda/numba/cuda/tests/core/test_itanium_mangler.py +++ b/numba_cuda/numba/cuda/tests/core/test_itanium_mangler.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # -*- coding: utf-8 -*- from numba import int32, int64, uint32, uint64, float32, float64 from numba.core.types import range_iter32_type diff --git a/numba_cuda/numba/cuda/tests/core/test_serialize.py b/numba_cuda/numba/cuda/tests/core/test_serialize.py index dd08f45b0..394fd9be7 100644 --- a/numba_cuda/numba/cuda/tests/core/test_serialize.py +++ b/numba_cuda/numba/cuda/tests/core/test_serialize.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import contextlib import gc import pickle diff --git a/numba_cuda/numba/cuda/tests/cudadrv/__init__.py b/numba_cuda/numba/cuda/tests/cudadrv/__init__.py index e0df12c1b..8195338ab 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/__init__.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.tests import load_testsuite import os diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_array_attr.py b/numba_cuda/numba/cuda/tests/cudadrv/test_array_attr.py index 27a61cf5e..9bcb78309 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_array_attr.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_array_attr.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.cuda.testing import unittest, CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_context_stack.py b/numba_cuda/numba/cuda/tests/cudadrv/test_context_stack.py index 3895f4cd5..ce49c2145 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_context_stack.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_context_stack.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numbers from ctypes import byref import weakref diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_array_slicing.py b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_array_slicing.py index 9dc72fdf0..93794d34b 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_array_slicing.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_array_slicing.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from itertools import product import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_auto_context.py b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_auto_context.py index 45815be70..272090d90 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_auto_context.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_auto_context.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_devicerecord.py b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_devicerecord.py index b13c8f979..d69c3ef47 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_devicerecord.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_devicerecord.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np import ctypes from numba.cuda.cudadrv.devicearray import ( diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_driver.py b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_driver.py index 4da2548f8..fca1ff628 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_driver.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_driver.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from ctypes import byref, c_int, sizeof from numba.cuda.cudadrv.driver import ( diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_libraries.py b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_libraries.py index f80c44ada..2ba26791a 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_libraries.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_libraries.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.testing import unittest from numba.cuda.testing import skip_on_cudasim, skip_unless_conda_cudatoolkit from numba.misc.findlib import find_lib diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_memory.py b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_memory.py index f5bbe5c39..ea9026ad2 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_memory.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_memory.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import ctypes import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_ndarray.py b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_ndarray.py index 638676128..7a3af9511 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_ndarray.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_cuda_ndarray.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import itertools import numpy as np from numba.cuda.cudadrv import devicearray diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_deallocations.py b/numba_cuda/numba/cuda/tests/cudadrv/test_deallocations.py index d39980c9e..c2d7ab1c9 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_deallocations.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_deallocations.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from contextlib import contextmanager import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_detect.py b/numba_cuda/numba/cuda/tests/cudadrv/test_detect.py index 03e2e0b8c..f21b6a0be 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_detect.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_detect.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import os import sys import subprocess diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_emm_plugins.py b/numba_cuda/numba/cuda/tests/cudadrv/test_emm_plugins.py index 29993f19c..5f6d72308 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_emm_plugins.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_emm_plugins.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import ctypes import numpy as np import weakref diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_events.py b/numba_cuda/numba/cuda/tests/cudadrv/test_events.py index f8a7805d5..ade58f0d7 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_events.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_events.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_host_alloc.py b/numba_cuda/numba/cuda/tests/cudadrv/test_host_alloc.py index 02761d958..14f372f19 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_host_alloc.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_host_alloc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.cuda.cudadrv import driver from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_init.py b/numba_cuda/numba/cuda/tests/cudadrv/test_init.py index c5dccbd6a..de9eb291b 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_init.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_init.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import multiprocessing as mp import os diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_inline_ptx.py b/numba_cuda/numba/cuda/tests/cudadrv/test_inline_ptx.py index aeeb5bbd2..e7c1c8ce4 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_inline_ptx.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_inline_ptx.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from llvmlite import ir from numba.cuda.cudadrv import nvvm diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_is_fp16.py b/numba_cuda/numba/cuda/tests/cudadrv/test_is_fp16.py index dcc73fa15..eabdf9152 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_is_fp16.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_is_fp16.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda from numba.cuda.testing import CUDATestCase, skip_on_cudasim, skip_unless_cc_53 diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_linker.py b/numba_cuda/numba/cuda/tests/cudadrv/test_linker.py index 9cb096ece..d851ae677 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_linker.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_linker.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np import warnings from numba import config diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_managed_alloc.py b/numba_cuda/numba/cuda/tests/cudadrv/test_managed_alloc.py index 357e74981..f830ff820 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_managed_alloc.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_managed_alloc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from ctypes import byref, c_size_t from numba.cuda.cudadrv.driver import device_memset, driver, USE_NV_BINDING diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_module_callbacks.py b/numba_cuda/numba/cuda/tests/cudadrv/test_module_callbacks.py index c608f2114..e06155c2f 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_module_callbacks.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_module_callbacks.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest import threading diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_mvc.py b/numba_cuda/numba/cuda/tests/cudadrv/test_mvc.py index e4a19f6d5..105dcbada 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_mvc.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_mvc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import multiprocessing as mp import traceback from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_nvjitlink.py b/numba_cuda/numba/cuda/tests/cudadrv/test_nvjitlink.py index 97a580187..e5b238910 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_nvjitlink.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_nvjitlink.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.testing import unittest from numba.cuda.testing import skip_on_cudasim from numba.cuda.testing import CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_nvrtc.py b/numba_cuda/numba/cuda/tests/cudadrv/test_nvrtc.py index 19b339f39..3f7cce9ed 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_nvrtc.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_nvrtc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.cudadrv import nvrtc from numba.cuda.testing import skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_nvvm_driver.py b/numba_cuda/numba/cuda/tests/cudadrv/test_nvvm_driver.py index 2dd444f5a..bcacdb145 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_nvvm_driver.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_nvvm_driver.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import warnings from llvmlite import ir diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_pinned.py b/numba_cuda/numba/cuda/tests/cudadrv/test_pinned.py index 8e4d811d1..fff078c4a 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_pinned.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_pinned.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np import platform diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_profiler.py b/numba_cuda/numba/cuda/tests/cudadrv/test_profiler.py index a1d7a95ce..40f5e227c 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_profiler.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_profiler.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import ContextResettingTestCase from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_ptds.py b/numba_cuda/numba/cuda/tests/cudadrv/test_ptds.py index 6bce378b3..9ec99d0b2 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_ptds.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_ptds.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import multiprocessing as mp import logging import traceback diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_reset_device.py b/numba_cuda/numba/cuda/tests/cudadrv/test_reset_device.py index d7a8ae384..22e03fb20 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_reset_device.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_reset_device.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import threading from numba import cuda from numba.cuda.cudadrv.driver import driver diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_runtime.py b/numba_cuda/numba/cuda/tests/cudadrv/test_runtime.py index 9bbb6822a..225031069 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_runtime.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_runtime.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import multiprocessing import os from numba.cuda.testing import unittest diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_select_device.py b/numba_cuda/numba/cuda/tests/cudadrv/test_select_device.py index e592a4773..11ff610a2 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_select_device.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_select_device.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # # Test does not work on some cards. # diff --git a/numba_cuda/numba/cuda/tests/cudadrv/test_streams.py b/numba_cuda/numba/cuda/tests/cudadrv/test_streams.py index 0885481ab..526ac8674 100644 --- a/numba_cuda/numba/cuda/tests/cudadrv/test_streams.py +++ b/numba_cuda/numba/cuda/tests/cudadrv/test_streams.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import asyncio import functools import threading diff --git a/numba_cuda/numba/cuda/tests/cudapy/__init__.py b/numba_cuda/numba/cuda/tests/cudapy/__init__.py index e0df12c1b..8195338ab 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/__init__.py +++ b/numba_cuda/numba/cuda/tests/cudapy/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.tests import load_testsuite import os diff --git a/numba_cuda/numba/cuda/tests/cudapy/cache_usecases.py b/numba_cuda/numba/cuda/tests/cudapy/cache_usecases.py index 428af9432..637f6d1c3 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/cache_usecases.py +++ b/numba_cuda/numba/cuda/tests/cudapy/cache_usecases.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda from numba.cuda.testing import CUDATestCase import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudapy/cache_with_cpu_usecases.py b/numba_cuda/numba/cuda/tests/cudapy/cache_with_cpu_usecases.py index a58b3c141..8c9cce605 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/cache_with_cpu_usecases.py +++ b/numba_cuda/numba/cuda/tests/cudapy/cache_with_cpu_usecases.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import sys from numba import cuda, njit diff --git a/numba_cuda/numba/cuda/tests/cudapy/cg_cache_usecases.py b/numba_cuda/numba/cuda/tests/cudapy/cg_cache_usecases.py index 0d652ab80..c34378c1b 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/cg_cache_usecases.py +++ b/numba_cuda/numba/cuda/tests/cudapy/cg_cache_usecases.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda from numba.cuda.testing import CUDATestCase import sys diff --git a/numba_cuda/numba/cuda/tests/cudapy/extensions_usecases.py b/numba_cuda/numba/cuda/tests/cudapy/extensions_usecases.py index 6fe6bf6eb..b08be9736 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/extensions_usecases.py +++ b/numba_cuda/numba/cuda/tests/cudapy/extensions_usecases.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import types from numba.core import config diff --git a/numba_cuda/numba/cuda/tests/cudapy/recursion_usecases.py b/numba_cuda/numba/cuda/tests/cudapy/recursion_usecases.py index 0bc1cf605..d54258f00 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/recursion_usecases.py +++ b/numba_cuda/numba/cuda/tests/cudapy/recursion_usecases.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Usecases of recursive functions in the CUDA target, many derived from numba/tests/recursion_usecases.py. diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_alignment.py b/numba_cuda/numba/cuda/tests/cudapy/test_alignment.py index a3183ae47..e5732e879 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_alignment.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_alignment.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import from_dtype, cuda from numba.cuda.testing import skip_on_cudasim, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_array.py b/numba_cuda/numba/cuda/tests/cudapy/test_array.py index 0a15448ef..c13a8bd90 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_array.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_array.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_array_alignment.py b/numba_cuda/numba/cuda/tests/cudapy/test_array_alignment.py index ee42531c4..662796be4 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_array_alignment.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_array_alignment.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import re import itertools import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_array_args.py b/numba_cuda/numba/cuda/tests/cudapy/test_array_args.py index 31491b3cc..e2fbe1bcc 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_array_args.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_array_args.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from collections import namedtuple diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_array_methods.py b/numba_cuda/numba/cuda/tests/cudapy/test_array_methods.py index ceb884700..9b5873125 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_array_methods.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_array_methods.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.cuda.testing import CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_atomics.py b/numba_cuda/numba/cuda/tests/cudapy/test_atomics.py index e4f057ba0..68edc61d1 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_atomics.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_atomics.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from textwrap import dedent diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_bfloat16.py b/numba_cuda/numba/cuda/tests/cudapy/test_bfloat16.py index 08e206dcb..af392eb39 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_bfloat16.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_bfloat16.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda, float32 from numba.cuda.bf16 import bfloat16 from numba.cuda.testing import CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_bfloat16_bindings.py b/numba_cuda/numba/cuda/tests/cudapy/test_bfloat16_bindings.py index c24b8c88f..a10949de9 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_bfloat16_bindings.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_bfloat16_bindings.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numba.cuda as cuda from numba.cuda.testing import unittest, CUDATestCase import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_blackscholes.py b/numba_cuda/numba/cuda/tests/cudapy/test_blackscholes.py index 027534356..7a0675c50 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_blackscholes.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_blackscholes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np import math from numba import cuda, double, void diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_boolean.py b/numba_cuda/numba/cuda/tests/cudapy/test_boolean.py index ac0d28769..eb9d74104 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_boolean.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_boolean.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.cuda.testing import unittest, CUDATestCase from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_caching.py b/numba_cuda/numba/cuda/tests/cudapy/test_caching.py index c9b5c6b10..e6da04c34 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_caching.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_caching.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import multiprocessing import os import shutil diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_casting.py b/numba_cuda/numba/cuda/tests/cudapy/test_casting.py index 1d291fa9f..547a4af00 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_casting.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_casting.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.cuda import compile_ptx diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_cffi.py b/numba_cuda/numba/cuda/tests/cudapy/test_cffi.py index caa6cc6a8..ec287ce5a 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_cffi.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_cffi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, types diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_compiler.py b/numba_cuda/numba/cuda/tests/cudapy/test_compiler.py index cf20d2511..474b19710 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_compiler.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_compiler.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from math import sqrt from numba import cuda, float32, int16, int32, int64, types, uint32, void from numba.cuda import ( diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_complex.py b/numba_cuda/numba/cuda/tests/cudapy/test_complex.py index f4b5e0434..1b4efe55c 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_complex.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_complex.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import math import itertools diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_complex_kernel.py b/numba_cuda/numba/cuda/tests/cudapy/test_complex_kernel.py index 8f948311b..2336afc01 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_complex_kernel.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_complex_kernel.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_const_string.py b/numba_cuda/numba/cuda/tests/cudapy/test_const_string.py index 040d5305e..72b9a57c9 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_const_string.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_const_string.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import re import numpy as np from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_constmem.py b/numba_cuda/numba/cuda/tests/cudapy/test_constmem.py index bb49b38e3..b20a39016 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_constmem.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_constmem.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, complex64, int32, float64 diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_cooperative_groups.py b/numba_cuda/numba/cuda/tests/cudapy/test_cooperative_groups.py index dd220d2f5..c5e4b29c2 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_cooperative_groups.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_cooperative_groups.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from __future__ import print_function import os diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_cuda_array_interface.py b/numba_cuda/numba/cuda/tests/cudapy/test_cuda_array_interface.py index f26efc5e8..a11547b7e 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_cuda_array_interface.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_cuda_array_interface.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import vectorize, guvectorize diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_cuda_jit_no_types.py b/numba_cuda/numba/cuda/tests/cudapy/test_cuda_jit_no_types.py index 78a93430b..bbed82414 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_cuda_jit_no_types.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_cuda_jit_no_types.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda import numpy as np from numba.cuda.testing import CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_datetime.py b/numba_cuda/numba/cuda/tests/cudapy/test_datetime.py index 1b177ccc4..73ebfba75 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_datetime.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_datetime.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, vectorize, guvectorize diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_debug.py b/numba_cuda/numba/cuda/tests/cudapy/test_debug.py index 6245f1400..0c4acc086 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_debug.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_debug.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.cuda.utils import PYVERSION diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_debuginfo.py b/numba_cuda/numba/cuda/tests/cudapy/test_debuginfo.py index 9450e74f2..f96fe424b 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_debuginfo.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_debuginfo.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from collections import namedtuple from numba.cuda.tests.support import override_config, captured_stdout from numba.cuda.testing import skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_debuginfo_types.py b/numba_cuda/numba/cuda/tests/cudapy/test_debuginfo_types.py index 0db72d91b..e5ca2b57e 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_debuginfo_types.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_debuginfo_types.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numba.cuda as cuda from numba.cuda.testing import CUDATestCase, skip_on_cudasim import llvmlite diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_device_func.py b/numba_cuda/numba/cuda/tests/cudapy/test_device_func.py index 49746a00e..9775b35d0 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_device_func.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_device_func.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import re import cffi diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_dispatcher.py b/numba_cuda/numba/cuda/tests/cudapy/test_dispatcher.py index 3342c1591..938694079 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_dispatcher.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_dispatcher.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.cudadrv.driver import CudaAPIError import numpy as np import threading diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_enums.py b/numba_cuda/numba/cuda/tests/cudapy/test_enums.py index f331f3758..03b4f3cb1 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_enums.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_enums.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Test cases adapted from numba/tests/test_enums.py """ diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_errors.py b/numba_cuda/numba/cuda/tests/cudapy/test_errors.py index 0e8c538e9..fb6dfeeb6 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_errors.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_errors.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda from numba.core.errors import TypingError from numba.cuda.testing import unittest, CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_exception.py b/numba_cuda/numba/cuda/tests/cudapy/test_exception.py index 87f16608e..749c61fe2 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_exception.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_exception.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_extending.py b/numba_cuda/numba/cuda/tests/cudapy/test_extending.py index b30bc2e72..f954b9b90 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_extending.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_extending.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.testing import skip_on_cudasim, unittest, CUDATestCase from numba.cuda.cudadrv.driver import _have_nvjitlink from llvmlite import ir diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_fastmath.py b/numba_cuda/numba/cuda/tests/cudapy/test_fastmath.py index f30526376..c1c58dffa 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_fastmath.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_fastmath.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from typing import List from dataclasses import dataclass, field from numba import cuda, float32 diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_forall.py b/numba_cuda/numba/cuda/tests/cudapy/test_forall.py index adef70911..49683b5cb 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_forall.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_forall.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_freevar.py b/numba_cuda/numba/cuda/tests/cudapy/test_freevar.py index 14470902f..07bcb1579 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_freevar.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_freevar.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_frexp_ldexp.py b/numba_cuda/numba/cuda/tests/cudapy/test_frexp_ldexp.py index e78971dd1..10a83ab99 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_frexp_ldexp.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_frexp_ldexp.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np import math from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_globals.py b/numba_cuda/numba/cuda/tests/cudapy/test_globals.py index 0bfb277c8..c1891b2e1 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_globals.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_globals.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, int32, float32 from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_gufunc.py b/numba_cuda/numba/cuda/tests/cudapy/test_gufunc.py index 62d17fdf5..835b1a2e0 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_gufunc.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_gufunc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from collections import namedtuple diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_gufunc_scalar.py b/numba_cuda/numba/cuda/tests/cudapy/test_gufunc_scalar.py index 6b9940805..819be81b8 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_gufunc_scalar.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_gufunc_scalar.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """Example: sum each row using guvectorize See Numpy documentation for detail about gufunc: diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_gufunc_scheduling.py b/numba_cuda/numba/cuda/tests/cudapy/test_gufunc_scheduling.py index 3c04a978e..d3dacd00f 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_gufunc_scheduling.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_gufunc_scheduling.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.deviceufunc import GUFuncEngine import unittest diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_idiv.py b/numba_cuda/numba/cuda/tests/cudapy/test_idiv.py index 332a87718..52d35a4c4 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_idiv.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_idiv.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, float32, float64, int32, void from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_inline.py b/numba_cuda/numba/cuda/tests/cudapy/test_inline.py index 96e9283c0..bb5efb45a 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_inline.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_inline.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import re import numpy as np from numba import cuda, types diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_inspect.py b/numba_cuda/numba/cuda/tests/cudapy/test_inspect.py index 60427b5c0..311bf1270 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_inspect.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_inspect.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import re import cffi diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_intrinsics.py b/numba_cuda/numba/cuda/tests/cudapy/test_intrinsics.py index acb4a1742..717410439 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_intrinsics.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_intrinsics.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import itertools import numpy as np import operator diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_ipc.py b/numba_cuda/numba/cuda/tests/cudapy/test_ipc.py index 52f6cfd29..4839042c5 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_ipc.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_ipc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import multiprocessing as mp import itertools import traceback diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_ir_utils.py b/numba_cuda/numba/cuda/tests/cudapy/test_ir_utils.py index 21c029bbf..baba098d4 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_ir_utils.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_ir_utils.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.testing import CUDATestCase import numba from numba.core.registry import cpu_target diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_iterators.py b/numba_cuda/numba/cuda/tests/cudapy/test_iterators.py index 4a69badc2..67842bde5 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_iterators.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_iterators.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_lang.py b/numba_cuda/numba/cuda/tests/cudapy/test_lang.py index 97562c250..291f579f7 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_lang.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_lang.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Test basic language features diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_laplace.py b/numba_cuda/numba/cuda/tests/cudapy/test_laplace.py index fcd3eca13..5547357a0 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_laplace.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_laplace.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, float64, void from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_libdevice.py b/numba_cuda/numba/cuda/tests/cudapy/test_libdevice.py index d2b85e501..eeb23348d 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_libdevice.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_libdevice.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.core import types from numba.cuda.testing import skip_on_cudasim, unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_lineinfo.py b/numba_cuda/numba/cuda/tests/cudapy/test_lineinfo.py index 17457be33..763f3240d 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_lineinfo.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_lineinfo.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda, float32, int32 from numba.core.errors import NumbaInvalidConfigWarning from numba.cuda.testing import CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_localmem.py b/numba_cuda/numba/cuda/tests/cudapy/test_localmem.py index 1e6687ce6..1cbd58f2f 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_localmem.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_localmem.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, int32, complex128, void diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_mandel.py b/numba_cuda/numba/cuda/tests/cudapy/test_mandel.py index 29265bfa5..f4d352544 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_mandel.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_mandel.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import float64, uint32 from numba.cuda.compiler import compile_ptx from numba.cuda.testing import skip_on_cudasim, unittest diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_math.py b/numba_cuda/numba/cuda/tests/cudapy/test_math.py index 9cc7ff473..e672098cd 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_math.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_math.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.cuda.testing import ( skip_unless_cc_53, diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_matmul.py b/numba_cuda/numba/cuda/tests/cudapy/test_matmul.py index 0071287c7..461853ca8 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_matmul.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_matmul.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, float32, void diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_minmax.py b/numba_cuda/numba/cuda/tests/cudapy/test_minmax.py index c44a2b5e6..6317d1530 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_minmax.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_minmax.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, float64 diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_montecarlo.py b/numba_cuda/numba/cuda/tests/cudapy/test_montecarlo.py index 143fa10c6..1b6a95182 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_montecarlo.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_montecarlo.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import math from numba import cuda from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_multigpu.py b/numba_cuda/numba/cuda/tests/cudapy/test_multigpu.py index 700987252..10df01fc0 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_multigpu.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_multigpu.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda import numpy as np from numba.cuda.testing import skip_on_cudasim, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_multiprocessing.py b/numba_cuda/numba/cuda/tests/cudapy/test_multiprocessing.py index 4d3fa07ca..c632de938 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_multiprocessing.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_multiprocessing.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import os import multiprocessing as mp diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_multithreads.py b/numba_cuda/numba/cuda/tests/cudapy/test_multithreads.py index 7ca6ff8dd..26834e079 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_multithreads.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_multithreads.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import traceback import threading import multiprocessing diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_nondet.py b/numba_cuda/numba/cuda/tests/cudapy/test_nondet.py index af57a47ed..343c1c5e5 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_nondet.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_nondet.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, float32, void from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_operator.py b/numba_cuda/numba/cuda/tests/cudapy/test_operator.py index 14adef2b8..bddee4662 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_operator.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_operator.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.cuda.testing import ( unittest, diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_optimization.py b/numba_cuda/numba/cuda/tests/cudapy/test_optimization.py index 200ec5264..0856f05dc 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_optimization.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_optimization.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba.cuda.testing import skip_on_cudasim, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_overload.py b/numba_cuda/numba/cuda/tests/cudapy/test_overload.py index 51752f732..1b1fb283c 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_overload.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_overload.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda, njit, types, version_info from numba.core.errors import TypingError from numba.core.extending import overload, overload_attribute diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_powi.py b/numba_cuda/numba/cuda/tests/cudapy/test_powi.py index 331a4b25c..30ebf793d 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_powi.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_powi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import math import numpy as np from numba import cuda, float64, int8, int32, void diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_print.py b/numba_cuda/numba/cuda/tests/cudapy/test_print.py index 0dbb3139b..ca7a5ff13 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_print.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_print.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.testing import CUDATestCase, skip_on_cudasim import numpy as np import subprocess diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_py2_div_issue.py b/numba_cuda/numba/cuda/tests/cudapy/test_py2_div_issue.py index 8ee4b786d..f32909527 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_py2_div_issue.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_py2_div_issue.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, float32, int32, void from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_random.py b/numba_cuda/numba/cuda/tests/cudapy/test_random.py index feffb840e..99e7fc662 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_random.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_random.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import math import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_record_dtype.py b/numba_cuda/numba/cuda/tests/cudapy/test_record_dtype.py index 85ddf1d74..619a03f7d 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_record_dtype.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_record_dtype.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.core import types diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_recursion.py b/numba_cuda/numba/cuda/tests/cudapy/test_recursion.py index b73722e44..5f4052423 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_recursion.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_recursion.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda from numba.core.errors import TypingError from numba.cuda.testing import CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_reduction.py b/numba_cuda/numba/cuda/tests/cudapy/test_reduction.py index cd34b018b..17a24fefb 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_reduction.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_reduction.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.core.config import ENABLE_CUDASIM diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_retrieve_autoconverted_arrays.py b/numba_cuda/numba/cuda/tests/cudapy/test_retrieve_autoconverted_arrays.py index 52b137c74..30db2844c 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_retrieve_autoconverted_arrays.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_retrieve_autoconverted_arrays.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_serialize.py b/numba_cuda/numba/cuda/tests/cudapy/test_serialize.py index 08ed0d6b3..324a8555a 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_serialize.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_serialize.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import pickle import numpy as np from numba import cuda, vectorize diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_slicing.py b/numba_cuda/numba/cuda/tests/cudapy/test_slicing.py index 40f2c05f4..9dedfcfd2 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_slicing.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_slicing.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.cuda.testing import unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_sm.py b/numba_cuda/numba/cuda/tests/cudapy/test_sm.py index c037d1a39..3faa68b98 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_sm.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_sm.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda, int32, float64, void from numba.core.errors import TypingError from numba.core import types diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_sm_creation.py b/numba_cuda/numba/cuda/tests/cudapy/test_sm_creation.py index cfc09d5c2..89d674a3e 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_sm_creation.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_sm_creation.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, float32, int32, void from numba.core.errors import TypingError diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_stream_api.py b/numba_cuda/numba/cuda/tests/cudapy/test_stream_api.py index 6703f4b66..dab713e6c 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_stream_api.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_stream_api.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.testing import ( skip_on_cudasim, skip_unless_cudasim, diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_sync.py b/numba_cuda/numba/cuda/tests/cudapy/test_sync.py index 4eaff55c9..2dd1eab76 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_sync.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_sync.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda, int32, float32 from numba.cuda.testing import skip_on_cudasim, unittest, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_transpose.py b/numba_cuda/numba/cuda/tests/cudapy/test_transpose.py index 38243b78d..776936849 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_transpose.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_transpose.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.cuda.kernels.transpose import transpose diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_ufuncs.py b/numba_cuda/numba/cuda/tests/cudapy/test_ufuncs.py index 6d3f11372..238a454a0 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_ufuncs.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_ufuncs.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import functools import numpy as np import unittest diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_userexc.py b/numba_cuda/numba/cuda/tests/cudapy/test_userexc.py index 06c6cc6eb..c316bd2ff 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_userexc.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_userexc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.testing import unittest, CUDATestCase from numba import cuda from numba.core import config diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_vector_type.py b/numba_cuda/numba/cuda/tests/cudapy/test_vector_type.py index 9fef225df..66cb0891e 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_vector_type.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_vector_type.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ CUDA vector type tests. Note that this test file imports `cuda.vector_type` module to programmatically test all the diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize.py b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize.py index f4c540ca1..52d70cb2e 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from collections import namedtuple diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_complex.py b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_complex.py index 8da551309..31da3ee7a 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_complex.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_complex.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import vectorize from numba.cuda.testing import skip_on_cudasim, CUDATestCase diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_decor.py b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_decor.py index 1c2bd513d..6ba17998a 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_decor.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_decor.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import vectorize, cuda diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_device.py b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_device.py index 67e2d3265..3d3a11b52 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_device.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_device.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import vectorize from numba import cuda, float32 import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_scalar_arg.py b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_scalar_arg.py index e413e67d1..b685ec427 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_scalar_arg.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_vectorize_scalar_arg.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import vectorize from numba import cuda, float64 diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_warning.py b/numba_cuda/numba/cuda/tests/cudapy/test_warning.py index 1cc40d5e6..3994ca285 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_warning.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_warning.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np from numba import cuda from numba.cuda.cudadrv import driver diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_warp_ops.py b/numba_cuda/numba/cuda/tests/cudapy/test_warp_ops.py index 13ae30174..00bce377e 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_warp_ops.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_warp_ops.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import re import numpy as np diff --git a/numba_cuda/numba/cuda/tests/cudasim/__init__.py b/numba_cuda/numba/cuda/tests/cudasim/__init__.py index e0df12c1b..8195338ab 100644 --- a/numba_cuda/numba/cuda/tests/cudasim/__init__.py +++ b/numba_cuda/numba/cuda/tests/cudasim/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.tests import load_testsuite import os diff --git a/numba_cuda/numba/cuda/tests/cudasim/support.py b/numba_cuda/numba/cuda/tests/cudasim/support.py index 4fca39cad..1f686b7bb 100644 --- a/numba_cuda/numba/cuda/tests/cudasim/support.py +++ b/numba_cuda/numba/cuda/tests/cudasim/support.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda diff --git a/numba_cuda/numba/cuda/tests/cudasim/test_cudasim_issues.py b/numba_cuda/numba/cuda/tests/cudasim/test_cudasim_issues.py index c1e8d0b23..87fc4cf8b 100644 --- a/numba_cuda/numba/cuda/tests/cudasim/test_cudasim_issues.py +++ b/numba_cuda/numba/cuda/tests/cudasim/test_cudasim_issues.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import threading import numpy as np diff --git a/numba_cuda/numba/cuda/tests/data/__init__.py b/numba_cuda/numba/cuda/tests/data/__init__.py index e69de29bb..6d4c2c442 100644 --- a/numba_cuda/numba/cuda/tests/data/__init__.py +++ b/numba_cuda/numba/cuda/tests/data/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause diff --git a/numba_cuda/numba/cuda/tests/data/cta_barrier.cu b/numba_cuda/numba/cuda/tests/data/cta_barrier.cu index e51b7e0a1..94558cd51 100644 --- a/numba_cuda/numba/cuda/tests/data/cta_barrier.cu +++ b/numba_cuda/numba/cuda/tests/data/cta_barrier.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + #include #include diff --git a/numba_cuda/numba/cuda/tests/data/cuda_include.cu b/numba_cuda/numba/cuda/tests/data/cuda_include.cu index 69a0efd9a..9560bcb68 100644 --- a/numba_cuda/numba/cuda/tests/data/cuda_include.cu +++ b/numba_cuda/numba/cuda/tests/data/cuda_include.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + // Not all CUDA includes are safe to include in device code compiled by NVRTC, // because it does not have paths to all system include directories. Headers // such as cuda_device_runtime_api.h are safe to use in NVRTC without adding diff --git a/numba_cuda/numba/cuda/tests/data/error.cu b/numba_cuda/numba/cuda/tests/data/error.cu index 402f3138d..9012ae731 100644 --- a/numba_cuda/numba/cuda/tests/data/error.cu +++ b/numba_cuda/numba/cuda/tests/data/error.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + extern "C" __device__ int bar(int* out, int a) { // Explicitly placed to generate an error diff --git a/numba_cuda/numba/cuda/tests/data/include/add.cuh b/numba_cuda/numba/cuda/tests/data/include/add.cuh index 46cb32fb5..bb9ab96c6 100644 --- a/numba_cuda/numba/cuda/tests/data/include/add.cuh +++ b/numba_cuda/numba/cuda/tests/data/include/add.cuh @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + // Templated addition function: myadd template __device__ T myadd(T a, T b) { return a + b; } diff --git a/numba_cuda/numba/cuda/tests/data/jitlink.cu b/numba_cuda/numba/cuda/tests/data/jitlink.cu index a2737a6ef..b7aec3e50 100644 --- a/numba_cuda/numba/cuda/tests/data/jitlink.cu +++ b/numba_cuda/numba/cuda/tests/data/jitlink.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + // Compile with: // // nvcc -gencode arch=compute_50,code=compute_50 -rdc true -ptx jitlink.cu diff --git a/numba_cuda/numba/cuda/tests/data/warn.cu b/numba_cuda/numba/cuda/tests/data/warn.cu index 4f31e951d..fc23acc52 100644 --- a/numba_cuda/numba/cuda/tests/data/warn.cu +++ b/numba_cuda/numba/cuda/tests/data/warn.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + extern "C" __device__ int bar(int* out, int a) { // Explicitly placed to generate a warning for testing the NVRTC program log diff --git a/numba_cuda/numba/cuda/tests/doc_examples/__init__.py b/numba_cuda/numba/cuda/tests/doc_examples/__init__.py index e0df12c1b..8195338ab 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/__init__.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.tests import load_testsuite import os diff --git a/numba_cuda/numba/cuda/tests/doc_examples/ffi/__init__.py b/numba_cuda/numba/cuda/tests/doc_examples/ffi/__init__.py index e69de29bb..6d4c2c442 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/ffi/__init__.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/ffi/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause diff --git a/numba_cuda/numba/cuda/tests/doc_examples/ffi/functions.cu b/numba_cuda/numba/cuda/tests/doc_examples/ffi/functions.cu index 3c568189e..320004f86 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/ffi/functions.cu +++ b/numba_cuda/numba/cuda/tests/doc_examples/ffi/functions.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + // magictoken.ex_mul_f32_f32.begin // Foreign function example: multiplication of a pair of floats diff --git a/numba_cuda/numba/cuda/tests/doc_examples/ffi/include/mul.cuh b/numba_cuda/numba/cuda/tests/doc_examples/ffi/include/mul.cuh index b3d8717bc..e35323462 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/ffi/include/mul.cuh +++ b/numba_cuda/numba/cuda/tests/doc_examples/ffi/include/mul.cuh @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + // Templated multiplication function: mymul template __device__ T mymul(T a, T b) { return a * b; } diff --git a/numba_cuda/numba/cuda/tests/doc_examples/ffi/saxpy.cu b/numba_cuda/numba/cuda/tests/doc_examples/ffi/saxpy.cu index c663fec4c..bf7993f74 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/ffi/saxpy.cu +++ b/numba_cuda/numba/cuda/tests/doc_examples/ffi/saxpy.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + #include // In numba/cuda/tests/data/include #include // In numba/cuda/tests/doc_examples/ffi/include diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_cg.py b/numba_cuda/numba/cuda/tests/doc_examples/test_cg.py index a14f4eac5..bcddb7135 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_cg.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_cg.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Contents in this file are referenced from the sphinx-generated docs. # "magictoken" is used for markers as beginning and ending of example text. diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_cpointer.py b/numba_cuda/numba/cuda/tests/doc_examples/test_cpointer.py index 159e44e5d..aa95268cc 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_cpointer.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_cpointer.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_cpu_gpu_compat.py b/numba_cuda/numba/cuda/tests/doc_examples/test_cpu_gpu_compat.py index a04cd39ce..6e7e838e2 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_cpu_gpu_compat.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_cpu_gpu_compat.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_ffi.py b/numba_cuda/numba/cuda/tests/doc_examples/test_ffi.py index acbffd40b..ba64da717 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_ffi.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_ffi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Contents in this file are referenced from the sphinx-generated docs. # "magictoken" is used for markers as beginning and ending of example text. diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_laplace.py b/numba_cuda/numba/cuda/tests/doc_examples/test_laplace.py index c044ec578..44370b389 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_laplace.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_laplace.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import ( diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_matmul.py b/numba_cuda/numba/cuda/tests/doc_examples/test_matmul.py index 3dc7e9aff..7eaad2829 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_matmul.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_matmul.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Matrix multiplication example via `cuda.jit`. diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_montecarlo.py b/numba_cuda/numba/cuda/tests/doc_examples/test_montecarlo.py index 5432c8947..67c5d381d 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_montecarlo.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_montecarlo.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_random.py b/numba_cuda/numba/cuda/tests/doc_examples/test_random.py index 3ef8ec3a9..f8c198a2c 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_random.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_random.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Contents in this file are referenced from the sphinx-generated docs. # "magictoken" is used for markers as beginning and ending of example text. diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_reduction.py b/numba_cuda/numba/cuda/tests/doc_examples/test_reduction.py index d572eb9c6..da177f890 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_reduction.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_reduction.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_sessionize.py b/numba_cuda/numba/cuda/tests/doc_examples/test_sessionize.py index d7b82f766..d10cc6f07 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_sessionize.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_sessionize.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import ( diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_ufunc.py b/numba_cuda/numba/cuda/tests/doc_examples/test_ufunc.py index f038530f6..adff666ae 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_ufunc.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_ufunc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/doc_examples/test_vecadd.py b/numba_cuda/numba/cuda/tests/doc_examples/test_vecadd.py index a120874a0..3172298fe 100644 --- a/numba_cuda/numba/cuda/tests/doc_examples/test_vecadd.py +++ b/numba_cuda/numba/cuda/tests/doc_examples/test_vecadd.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest from numba.cuda.testing import CUDATestCase, skip_on_cudasim diff --git a/numba_cuda/numba/cuda/tests/enum_usecases.py b/numba_cuda/numba/cuda/tests/enum_usecases.py index 4b84b3aad..1883eab77 100644 --- a/numba_cuda/numba/cuda/tests/enum_usecases.py +++ b/numba_cuda/numba/cuda/tests/enum_usecases.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from enum import Enum, IntEnum diff --git a/numba_cuda/numba/cuda/tests/nocuda/__init__.py b/numba_cuda/numba/cuda/tests/nocuda/__init__.py index e0df12c1b..8195338ab 100644 --- a/numba_cuda/numba/cuda/tests/nocuda/__init__.py +++ b/numba_cuda/numba/cuda/tests/nocuda/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.tests import load_testsuite import os diff --git a/numba_cuda/numba/cuda/tests/nocuda/test_dummyarray.py b/numba_cuda/numba/cuda/tests/nocuda/test_dummyarray.py index a870d1e38..4947c15d3 100644 --- a/numba_cuda/numba/cuda/tests/nocuda/test_dummyarray.py +++ b/numba_cuda/numba/cuda/tests/nocuda/test_dummyarray.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import unittest import itertools import numpy as np diff --git a/numba_cuda/numba/cuda/tests/nocuda/test_function_resolution.py b/numba_cuda/numba/cuda/tests/nocuda/test_function_resolution.py index ec59f3fab..7bf6f9201 100644 --- a/numba_cuda/numba/cuda/tests/nocuda/test_function_resolution.py +++ b/numba_cuda/numba/cuda/tests/nocuda/test_function_resolution.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.testing import unittest, skip_on_cudasim import operator from numba.core import types, typing diff --git a/numba_cuda/numba/cuda/tests/nocuda/test_import.py b/numba_cuda/numba/cuda/tests/nocuda/test_import.py index fdedfb02b..be1f55a5d 100644 --- a/numba_cuda/numba/cuda/tests/nocuda/test_import.py +++ b/numba_cuda/numba/cuda/tests/nocuda/test_import.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.tests.support import run_in_subprocess import unittest diff --git a/numba_cuda/numba/cuda/tests/nocuda/test_library_lookup.py b/numba_cuda/numba/cuda/tests/nocuda/test_library_lookup.py index 1f900d216..32e77c63f 100644 --- a/numba_cuda/numba/cuda/tests/nocuda/test_library_lookup.py +++ b/numba_cuda/numba/cuda/tests/nocuda/test_library_lookup.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import sys import os import multiprocessing as mp diff --git a/numba_cuda/numba/cuda/tests/nocuda/test_nvvm.py b/numba_cuda/numba/cuda/tests/nocuda/test_nvvm.py index 9b396a2c8..3d8a62280 100644 --- a/numba_cuda/numba/cuda/tests/nocuda/test_nvvm.py +++ b/numba_cuda/numba/cuda/tests/nocuda/test_nvvm.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.cudadrv import nvvm from numba.cuda.testing import skip_on_cudasim from numba.cuda import utils diff --git a/numba_cuda/numba/cuda/tests/nrt/__init__.py b/numba_cuda/numba/cuda/tests/nrt/__init__.py index e0df12c1b..8195338ab 100644 --- a/numba_cuda/numba/cuda/tests/nrt/__init__.py +++ b/numba_cuda/numba/cuda/tests/nrt/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.cuda.tests import load_testsuite import os diff --git a/numba_cuda/numba/cuda/tests/nrt/test_nrt.py b/numba_cuda/numba/cuda/tests/nrt/test_nrt.py index 1ecd80f26..cfefa774b 100644 --- a/numba_cuda/numba/cuda/tests/nrt/test_nrt.py +++ b/numba_cuda/numba/cuda/tests/nrt/test_nrt.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import re import os diff --git a/numba_cuda/numba/cuda/tests/nrt/test_nrt_refct.py b/numba_cuda/numba/cuda/tests/nrt/test_nrt_refct.py index a1cabdea1..e51d5b87d 100644 --- a/numba_cuda/numba/cuda/tests/nrt/test_nrt_refct.py +++ b/numba_cuda/numba/cuda/tests/nrt/test_nrt_refct.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import numpy as np import unittest from numba.cuda.tests.support import override_config diff --git a/numba_cuda/numba/cuda/tests/support.py b/numba_cuda/numba/cuda/tests/support.py index f66e8dcef..7869d20ed 100644 --- a/numba_cuda/numba/cuda/tests/support.py +++ b/numba_cuda/numba/cuda/tests/support.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import cmath import contextlib import enum diff --git a/numba_cuda/numba/cuda/tests/test_binary_generation/Makefile b/numba_cuda/numba/cuda/tests/test_binary_generation/Makefile index e3f617d29..f5fa78ffe 100644 --- a/numba_cuda/numba/cuda/tests/test_binary_generation/Makefile +++ b/numba_cuda/numba/cuda/tests/test_binary_generation/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # Generates the input files used by the nvjitlink tests # Test binaries are built taking into account the CC of the GPU in the test machine diff --git a/numba_cuda/numba/cuda/tests/test_binary_generation/build.bat b/numba_cuda/numba/cuda/tests/test_binary_generation/build.bat index f33fa4f6d..06d222e3d 100644 --- a/numba_cuda/numba/cuda/tests/test_binary_generation/build.bat +++ b/numba_cuda/numba/cuda/tests/test_binary_generation/build.bat @@ -1,3 +1,6 @@ +@REM SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +@REM SPDX-License-Identifier: BSD-2-Clause + @echo off REM Test binaries are build taking into accoutn the CC of the GPU in the test machine for /f "tokens=*" %%i in ('nvidia-smi --query-gpu=compute_cap --format=csv ^| findstr /v compute_cap ^| head -n 1 ^| sed "s/\.//"') do set GPU_CC=%%i diff --git a/numba_cuda/numba/cuda/tests/test_binary_generation/generate_raw_ltoir.py b/numba_cuda/numba/cuda/tests/test_binary_generation/generate_raw_ltoir.py index 735a1244e..104aeaeaf 100644 --- a/numba_cuda/numba/cuda/tests/test_binary_generation/generate_raw_ltoir.py +++ b/numba_cuda/numba/cuda/tests/test_binary_generation/generate_raw_ltoir.py @@ -1,4 +1,5 @@ -# Copyright (c) 2024, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause import argparse import os diff --git a/numba_cuda/numba/cuda/tests/test_binary_generation/nrt_extern.cu b/numba_cuda/numba/cuda/tests/test_binary_generation/nrt_extern.cu index c9f73908e..3edc961c4 100644 --- a/numba_cuda/numba/cuda/tests/test_binary_generation/nrt_extern.cu +++ b/numba_cuda/numba/cuda/tests/test_binary_generation/nrt_extern.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + #include extern "C" __device__ int device_allocate_deallocate(int* nb_retval){ diff --git a/numba_cuda/numba/cuda/tests/test_binary_generation/test_device_functions.cu b/numba_cuda/numba/cuda/tests/test_binary_generation/test_device_functions.cu index 20c66f234..d67de8350 100644 --- a/numba_cuda/numba/cuda/tests/test_binary_generation/test_device_functions.cu +++ b/numba_cuda/numba/cuda/tests/test_binary_generation/test_device_functions.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + #include extern __device__ bool __heq(__half arg1, __half arg2); diff --git a/numba_cuda/numba/cuda/tests/test_binary_generation/undefined_extern.cu b/numba_cuda/numba/cuda/tests/test_binary_generation/undefined_extern.cu index 9e0a0cad6..d0af49c4c 100644 --- a/numba_cuda/numba/cuda/tests/test_binary_generation/undefined_extern.cu +++ b/numba_cuda/numba/cuda/tests/test_binary_generation/undefined_extern.cu @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + */ + extern __device__ float undef(float a, float b); __global__ void f(float *r, float *a, float *b) { r[0] = undef(a[0], b[0]); } diff --git a/numba_cuda/numba/cuda/types.py b/numba_cuda/numba/cuda/types.py index 92b8f3ecb..437e0d2f2 100644 --- a/numba_cuda/numba/cuda/types.py +++ b/numba_cuda/numba/cuda/types.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba.core import types diff --git a/numba_cuda/numba/cuda/typing/__init__.py b/numba_cuda/numba/cuda/typing/__init__.py index 5e114130d..bb0005ecc 100644 --- a/numba_cuda/numba/cuda/typing/__init__.py +++ b/numba_cuda/numba/cuda/typing/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from .templates import ( signature, make_concrete_template, diff --git a/numba_cuda/numba/cuda/typing/templates.py b/numba_cuda/numba/cuda/typing/templates.py index fee67967c..d88075da0 100644 --- a/numba_cuda/numba/cuda/typing/templates.py +++ b/numba_cuda/numba/cuda/typing/templates.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """ Define typing templates """ diff --git a/numba_cuda/numba/cuda/ufuncs.py b/numba_cuda/numba/cuda/ufuncs.py index bcfff371f..b9c05741f 100644 --- a/numba_cuda/numba/cuda/ufuncs.py +++ b/numba_cuda/numba/cuda/ufuncs.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + """Contains information on how to translate different ufuncs for the CUDA target. It is a database of different ufuncs and how each of its loops maps to a function that implements the inner kernel of that ufunc (the inner kernel diff --git a/numba_cuda/numba/cuda/utils.py b/numba_cuda/numba/cuda/utils.py index d0612e66e..05ff5a2d7 100644 --- a/numba_cuda/numba/cuda/utils.py +++ b/numba_cuda/numba/cuda/utils.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import os import warnings import traceback diff --git a/numba_cuda/numba/cuda/vector_types.py b/numba_cuda/numba/cuda/vector_types.py index e6e28d317..259b09968 100644 --- a/numba_cuda/numba/cuda/vector_types.py +++ b/numba_cuda/numba/cuda/vector_types.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + # CUDA built-in Vector Types # https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#built-in-vector-types diff --git a/numba_cuda/numba/cuda/vectorizers.py b/numba_cuda/numba/cuda/vectorizers.py index bffe4ca75..2607ea043 100644 --- a/numba_cuda/numba/cuda/vectorizers.py +++ b/numba_cuda/numba/cuda/vectorizers.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + from numba import cuda from numpy import array as np_array from numba.cuda import deviceufunc diff --git a/pyproject.toml b/pyproject.toml index f3add3728..bed757c95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,5 @@ -# Copyright (c) 2023-2025, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause [build-system] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index bfb11f27a..607822221 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,6 @@ -# Copyright (c) 2024, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import pathlib from setuptools import setup diff --git a/site-packages/_numba_cuda_redirector.pth b/site-packages/_numba_cuda_redirector.pth index f8908a9cb..e3a4c602b 100644 --- a/site-packages/_numba_cuda_redirector.pth +++ b/site-packages/_numba_cuda_redirector.pth @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import _numba_cuda_redirector diff --git a/site-packages/_numba_cuda_redirector.py b/site-packages/_numba_cuda_redirector.py index 1c76609ac..3c1301ba3 100644 --- a/site-packages/_numba_cuda_redirector.py +++ b/site-packages/_numba_cuda_redirector.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + import importlib import importlib.abc import pathlib