Skip to content

Commit 318991a

Browse files
authored
Adopt --group test-cu12, test-cu13 organization from PR #1090 (without adding anything related to pixi). (#1125)
1 parent 21db67c commit 318991a

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

.github/workflows/test-wheel-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ jobs:
283283
run: |
284284
set -euo pipefail
285285
pushd cuda_pathfinder
286-
pip install --only-binary=:all: -v . --group "test_nvidia_wheels_cu${TEST_CUDA_MAJOR}" --group test_nvidia_wheels_host
286+
pip install --only-binary=:all: -v . --group "test-cu${TEST_CUDA_MAJOR}"
287287
pip list
288288
popd
289289

.github/workflows/test-wheel-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ jobs:
256256
shell: bash --noprofile --norc -xeuo pipefail {0}
257257
run: |
258258
pushd cuda_pathfinder
259-
pip install --only-binary=:all: -v . --group "test_nvidia_wheels_cu${TEST_CUDA_MAJOR}" --group test_nvidia_wheels_host
259+
pip install --only-binary=:all: -v . --group "test-cu${TEST_CUDA_MAJOR}"
260260
pip list
261261
popd
262262

cuda_pathfinder/pyproject.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ dependencies = []
1414
test = [
1515
"pytest>=6.2.4",
1616
]
17-
test_nvidia_wheels_cu12 = [
17+
# Internal organization of test dependencies.
18+
cu12 = [
1819
"cuda-toolkit[nvcc,cublas,nvrtc,cudart,cufft,curand,cusolver,cusparse,npp,nvfatbin,nvjitlink,nvjpeg,cccl]==12.*",
1920
"cuda-toolkit[cufile]==12.*; sys_platform != 'win32'",
2021
"nvidia-cublasmp-cu12; sys_platform != 'win32'",
@@ -24,18 +25,30 @@ test_nvidia_wheels_cu12 = [
2425
"nvidia-nccl-cu12; sys_platform != 'win32'",
2526
"nvidia-nvshmem-cu12; sys_platform != 'win32'",
2627
]
27-
test_nvidia_wheels_cu13 = [
28+
cu13 = [
2829
"cuda-toolkit[nvcc,cublas,nvrtc,cudart,cufft,curand,cusolver,cusparse,npp,nvfatbin,nvjitlink,nvjpeg,cccl,nvvm]==13.*",
2930
"cuda-toolkit[cufile]==13.*; sys_platform != 'win32'",
3031
"nvidia-cublasmp-cu13; sys_platform != 'win32'",
3132
"nvidia-cudss-cu13",
3233
"nvidia-nccl-cu13; sys_platform != 'win32'",
3334
"nvidia-nvshmem-cu13; sys_platform != 'win32'",
3435
]
35-
test_nvidia_wheels_host = [
36+
host = [
3637
"nvpl-fft; platform_system == 'Linux' and platform_machine == 'aarch64'",
3738
]
3839

40+
# User-facing dependencies, e.g. pip install --group test-cu13
41+
test-cu12 = [
42+
{ include-group = "test" },
43+
{ include-group = "cu12" },
44+
{ include-group = "host" },
45+
]
46+
test-cu13 = [
47+
{ include-group = "test" },
48+
{ include-group = "cu13" },
49+
{ include-group = "host" },
50+
]
51+
3952
[project.urls]
4053
Repository = "https://github.com/NVIDIA/cuda-python"
4154
Documentation = "https://nvidia.github.io/cuda-python/"

toolshed/collect_site_packages_dll_files.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ function Fresh-Venv {
2323
Set-Location -Path 'cuda_pathfinder'
2424

2525
Fresh-Venv -Path '..\TmpCp12Venv'
26-
pip install --only-binary=:all: -e '.[test,test_nvidia_wheels_cu12,test_nvidia_wheels_host]'
26+
pip install --only-binary=:all: -e . --group test-cu12
2727
deactivate
2828

2929
Fresh-Venv -Path '..\TmpCp13Venv'
30-
pip install --only-binary=:all: -e '.[test,test_nvidia_wheels_cu13,test_nvidia_wheels_host]'
30+
pip install --only-binary=:all: -e . --group test-cu13
3131
deactivate
3232

3333
Set-Location -Path '..'

toolshed/collect_site_packages_so_files.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ fresh_venv() {
1717
cd cuda_pathfinder/
1818
fresh_venv ../TmpCp12Venv
1919
set -x
20-
pip install --only-binary=:all: -e . --group test --group test_nvidia_wheels_cu12 --group test_nvidia_wheels_host
20+
pip install --only-binary=:all: -e . --group test-cu12
2121
set +x
2222
deactivate
2323
fresh_venv ../TmpCp13Venv
2424
set -x
25-
pip install --only-binary=:all: -e . --group test --group test_nvidia_wheels_cu13 --group test_nvidia_wheels_host
25+
pip install --only-binary=:all: -e . --group test-cu13
2626
set +x
2727
deactivate
2828
cd ..

0 commit comments

Comments
 (0)