44
55set -euo pipefail
66
7- . /opt/conda/etc/profile.d/conda.sh
8-
9- CTK_PACKAGE_DEPENDENCIES=(
10- " cuda-cccl"
11- " cuda-nvcc-impl"
12- " cuda-nvrtc"
13- " libcurand-dev"
14- " cuda-cuobjdump"
15- )
16-
177DISTRO=` cat /etc/os-release | grep " ^ID=" | awk ' BEGIN {FS="="} { print $2 }' `
188
199if [ " $DISTRO " = " ubuntu" ]; then
@@ -22,67 +12,30 @@ if [ "$DISTRO" = "ubuntu" ]; then
2212 apt remove --purge ` dpkg --get-selections | grep cuda-nvrtc | awk ' {print $1}' ` -y
2313fi
2414
25- rapids-logger " Install testing dependencies"
26- # TODO: Replace with rapids-dependency-file-generator
27- DEPENDENCIES=(
28- " c-compiler"
29- " cxx-compiler"
30- " ${CTK_PACKAGE_DEPENDENCIES[@]} "
31- " cuda-python"
32- " cuda-version=${CUDA_VER% .* } "
33- " make"
34- " numba-cuda"
35- " psutil"
36- " pytest"
37- " pytest-xdist"
38- " pytest-benchmark"
39- " cffi"
40- " ml_dtypes"
41- " python=${RAPIDS_PY_VERSION} "
42- )
4315# Constrain oldest supported dependencies for testing
4416if [ " ${RAPIDS_DEPENDENCIES:- } " = " oldest" ]; then
45- DEPENDENCIES+=(" numba==0.60.0" )
17+ # add to the default environment's dependencies
18+ pixi add " numba=0.60.0"
4619fi
4720
48- rapids-mamba-retry create \
49- -n test \
50- --strict-channel-priority \
51- --channel " ` pwd` /conda-repo" \
52- --channel conda-forge \
53- " ${DEPENDENCIES[@]} "
54-
55- # Temporarily allow unbound variables for conda activation.
56- set +u
57- conda activate test
58- set -u
59-
60- pip install filecheck
61-
62- rapids-print-env
63-
6421rapids-logger " Check GPU usage"
6522nvidia-smi
6623
67- rapids-logger " Build test binaries"
68- export NUMBA_CUDA_TEST_BIN_DIR=` pwd` /testing
69- pushd $NUMBA_CUDA_TEST_BIN_DIR
70- make -j $( nproc)
71-
72- rapids-logger " Show Numba system info"
73- python -m numba --sysinfo
74-
7524EXITCODE=0
7625trap " EXITCODE=1" ERR
7726set +e
7827
28+ rapids-logger " Show Numba system info"
29+ pixi run -e " ${PIXI_ENV} " python -m numba --sysinfo
30+
7931rapids-logger " Test importing numba.cuda"
80- python -c " from numba import cuda"
32+ pixi run -e " ${PIXI_ENV} " python -c " from numba import cuda"
8133
8234rapids-logger " Run Tests"
83- pytest -v
84-
85- popd
35+ pixi run -e " ${PIXI_ENV} " test -n auto \
36+ --dist loadscope \
37+ --loadscope-reorder \
38+ -v
8639
8740rapids-logger " Test script exiting with value: $EXITCODE "
8841exit ${EXITCODE}
0 commit comments