Skip to content

Commit c97767c

Browse files
add a new ci job for testing with pynvjitlink
1 parent 6327ec2 commit c97767c

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

.github/workflows/pr.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,20 @@ jobs:
5454
uses: ./.github/workflows/conda-python-tests.yaml
5555
with:
5656
build_type: pull-request
57-
script: "ci/test_conda.sh"
57+
script: "ci/test_conda.sh false"
5858
run_codecov: false
5959
matrix_filter: ${{ needs.compute-matrix.outputs.TEST_MATRIX }}
60+
test-conda-pynvjitlink:
61+
needs:
62+
- build-conda
63+
- compute-matrix
64+
uses: ./.github/workflows/conda-python-tests.yaml
65+
with:
66+
build_type: pull-request
67+
script: "ci/test_conda.sh true"
68+
run_codecov: false
69+
# This selects "ARCH=amd64 + the latest supported Python + CUDA".
70+
matrix_filter: map(select(.ARCH == "amd64")) | group_by(.CUDA_VER|split(".")|map(tonumber)|.[0]) | map(max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]))
6071
build-wheels:
6172
needs:
6273
- compute-matrix
@@ -72,8 +83,18 @@ jobs:
7283
uses: ./.github/workflows/wheels-test.yaml
7384
with:
7485
build_type: pull-request
75-
script: "ci/test_wheel.sh"
86+
script: "ci/test_wheel.sh false"
7687
matrix_filter: ${{ needs.compute-matrix.outputs.TEST_MATRIX }}
88+
test-wheels-pynvjitlink:
89+
needs:
90+
- build-wheels
91+
- compute-matrix
92+
uses: ./.github/workflows/wheels-test.yaml
93+
with:
94+
build_type: pull-request
95+
script: "ci/test_wheel.sh true"
96+
# This selects "ARCH=amd64 + the latest supported Python + CUDA".
97+
matrix_filter: map(select(.ARCH == "amd64")) | group_by(.CUDA_VER|split(".")|map(tonumber)|.[0]) | map(max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]))
7798
build-docs:
7899
needs:
79100
- build-conda

ci/test_conda.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
set -euo pipefail
55

6+
USE_PYNVJITLINK = $1
7+
68
. /opt/conda/etc/profile.d/conda.sh
79

810
rapids-logger "Install testing dependencies"
@@ -42,8 +44,13 @@ EXITCODE=0
4244
trap "EXITCODE=1" ERR
4345
set +e
4446

47+
if [ "$USE_PYNVJITLINK" == true ]; then
48+
rapids-logger "Install pynvjitlink"
49+
conda install -c rapidsai pynvjitlink
50+
fi
51+
4552
rapids-logger "Run Tests"
46-
python -m numba.runtests numba.cuda.tests -v
53+
ENABLE_PYNVJITLINK=$USE_PYNVJITLINK python -m numba.runtests numba.cuda.tests -v
4754

4855
popd
4956

ci/test_wheel.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33

44
set -euo pipefail
55

6+
USE_PYNVJITLINK = $1
7+
68
rapids-logger "Install testing dependencies"
79
# TODO: Replace with rapids-dependency-file-generator
810
python -m pip install \
911
psutil \
1012
cuda-python \
1113
pytest
1214

15+
if [ "$USE_PYNVJITLINK" == true ]; then
16+
rapids-logger "Install pynvjitlink"
17+
python -m pip install pynvjitlink
18+
fi
19+
1320
rapids-logger "Install wheel"
1421
package=$(realpath wheel/numba_cuda*.whl)
1522
echo "Package path: $package"
@@ -26,6 +33,6 @@ rapids-logger "Show Numba system info"
2633
python -m numba --sysinfo
2734

2835
rapids-logger "Run Tests"
29-
python -m numba.runtests numba.cuda.tests -v
36+
ENABLE_PYNVJITLINK=$USE_PYNVJITLINK python -m numba.runtests numba.cuda.tests -v
3037

3138
popd

0 commit comments

Comments
 (0)