Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause

# SCM syntax highlighting & preventing 3-way merges
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ testing/*.ltoir
testing/*.ltoir.o
testing/*.o
testing/*.ptx
# pixi environments
.pixi/*
!.pixi/config.toml
*.log
1 change: 1 addition & 0 deletions .spdx-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ numba_cuda/numba/cuda/include/*/cuda_*.hpp

# GitHub configuration files
.github/CODEOWNERS
pixi.lock
5 changes: 3 additions & 2 deletions ci/coverage_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ rapids-logger "Install wheel with test dependencies and coverage tools"
package=$(realpath wheel/numba_cuda*.whl)
echo "Package path: ${package}"
python -m pip install \
"${package}[test]" \
"${package}" \
"cuda-python==${CUDA_VER_MAJOR_MINOR%.*}.*" \
"cuda-core==0.3.*" \
pytest-cov \
coverage
coverage \
--group test

rapids-logger "Build test binaries"
export NUMBA_CUDA_TEST_BIN_DIR=`pwd`/testing
Expand Down
4 changes: 3 additions & 1 deletion ci/test_thirdparty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ rapids-logger "Install wheel with test dependencies"
package=$(realpath wheel/numba_cuda*.whl)
echo "Package path: ${package}"
python -m pip install \
"${package}[test]" \
"${package}" \
"cuda-python==${CUDA_VER_MAJOR_MINOR%.*}.*" \
"cuda-core==0.3.*" \
"nvidia-nvjitlink-cu12" \
--group test



rapids-logger "Shallow clone cuDF repository"
Expand Down
2 changes: 1 addition & 1 deletion ci/test_wheel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $CUDA_VER_MAJOR = ($env:CUDA_VER -split '\.')[0] -join '.'
rapids-logger "Install wheel with test dependencies"
$package = Resolve-Path wheel\numba_cuda*.whl | Select-Object -ExpandProperty Path
echo "Package path: $package"
python -m pip install "${package}[cu${CUDA_VER_MAJOR},test-cu${CUDA_VER_MAJOR}]"
python -m pip install "${package}[cu${CUDA_VER_MAJOR}]" --group "test-cu${CUDA_VER_MAJOR}"
python -m pip install "llvmlite<0.45" "numba==0.61.*" # WAR for https://github.com/numba/llvmlite/issues/1297


Expand Down
4 changes: 3 additions & 1 deletion ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ package=$(realpath wheel/numba_cuda*.whl)
echo "Package path: ${package}"

DEPENDENCIES=(
"${package}[test]"
"${package}"
"cuda-python==${CUDA_VER_MAJOR_MINOR%.*}.*"
"cuda-core==0.3.*"
"--group"
"test"
)

# Constrain oldest supported dependencies for testing
Expand Down
3 changes: 2 additions & 1 deletion ci/test_wheel_ctypes_binding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ rapids-logger "Install wheel with testing dependencies"
package=$(realpath wheel/numba_cuda*.whl)
echo "Package path: $package"
python -m pip install \
"${package}[test]" \
"${package}" \
cuda-python \
--group test

# FIXME: Find a way to build the tests that does not depend on the CUDA Python bindings
#rapids-logger "Build tests"
Expand Down
2 changes: 1 addition & 1 deletion ci/test_wheel_deps_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rapids-logger "Install wheel with test dependencies"
package=$(realpath wheel/numba_cuda*.whl)
echo "Package path: ${package}"
# TODO: control minor version pinning to honor TEST_MATRIX once the cuda-toolkit metapackage is up
python -m pip install "${package}[cu${CUDA_VER_MAJOR},test-cu${CUDA_VER_MAJOR}]"
python -m pip install "${package}[cu${CUDA_VER_MAJOR}]" --group "test-cu${CUDA_VER_MAJOR}"

rapids-logger "Build test binaries"

Expand Down
2,025 changes: 2,025 additions & 0 deletions pixi.lock

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ cu13 = [
"nvidia-cuda-cccl==13.*",
]

[dependency-groups]
test = [
"pre-commit",
"psutil",
Expand All @@ -56,14 +57,12 @@ test = [
"ml_dtypes",
]
test-cu12 = [
"numba-cuda[cu12]",
"numba-cuda[test]",
"nvidia-curand-cu12",
{ include-group = "test" }
]
test-cu13 = [
"numba-cuda[cu13]",
"numba-cuda[test]",
"nvidia-curand==10.4.*",
{ include-group = "test" }
]

[project.urls]
Expand Down Expand Up @@ -146,3 +145,18 @@ exclude = [
"numba_cuda/numba/cuda/tests/doc_examples/test_cg.py" = ["E501"]
"numba_cuda/numba/cuda/tests/doc_examples/test_matmul.py" = ["E501"]
"numba_cuda/numba/tests/doc_examples/test_interval_example.py" = ["E501"]

[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "linux-aarch64", "win-64"]

[tool.pixi.pypi-dependencies]
numba-cuda = { path = ".", editable = true }

[tool.pixi.environments]
cu12 = { features = ["cu12", "test"], solve-group = "cu12" }
cu13 = { features = ["cu13", "test"], solve-group = "cu13" }
test = { features = ["test"], solve-group = "test" }

[tool.pixi.tasks]
test = { cmd = ["pytest", "$PIXI_PROJECT_ROOT/numba_cuda/numba/cuda/tests"] }