Skip to content

Commit 4c5811e

Browse files
authored
Merge branch 'main' into kaeun97/add-math-nextafter
2 parents f540109 + b43dcc8 commit 4c5811e

File tree

300 files changed

+18742
-4290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+18742
-4290
lines changed

.github/workflows/conda-python-build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
runs-on: ubuntu-latest
5656
outputs:
5757
MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }}
58+
timeout-minutes: 60
5859
steps:
5960
- name: Compute Build Matrix
6061
id: compute-matrix
@@ -82,6 +83,7 @@ jobs:
8283
image: rapidsai/ci-conda:cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}
8384
env:
8485
RAPIDS_BUILD_TYPE: ${{ inputs.build_type }}
86+
timeout-minutes: 60
8587
steps:
8688
- uses: actions/checkout@v4
8789
with:

.github/workflows/conda-python-tests.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
BUILD_TYPE: ${{ inputs.build_type }}
5959
outputs:
6060
MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }}
61+
timeout-minutes: 60
6162
steps:
6263
- name: Compute Python Test Matrix
6364
id: compute-matrix
@@ -90,6 +91,7 @@ jobs:
9091
env:
9192
RAPIDS_BUILD_TYPE: ${{ inputs.build_type }}
9293
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
94+
timeout-minutes: 60
9395
steps:
9496
- uses: actions/checkout@v4
9597
with:
@@ -111,6 +113,15 @@ jobs:
111113
- name: Setup proxy cache
112114
uses: nv-gha-runners/setup-proxy-cache@main
113115
continue-on-error: true
116+
- name: Compute pixi environment name
117+
run: |
118+
set -euo pipefail
119+
PIXI_ENV="cu-$(cut -d. -f1-2 <<< "${{ matrix.CUDA_VER }}" | tr . -)"
120+
echo "PIXI_ENV=${PIXI_ENV}" >> "${GITHUB_ENV}"
121+
- name: Setup pixi
122+
uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293
123+
with:
124+
environments: ${{ env.PIXI_ENV }}
114125
- name: Python tests
115126
run: ${{ inputs.script }}
116127
env:

.github/workflows/docs-build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
image: rapidsai/ci-conda:cuda13.0.0-ubuntu24.04-py3.13
5353
env:
5454
RAPIDS_BUILD_TYPE: ${{ inputs.build_type }}
55+
timeout-minutes: 60
5556
steps:
5657
- uses: actions/checkout@v4
5758
with:

.github/workflows/pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- "pull-request/[0-9]+"
10+
- "main"
1011

1112
concurrency:
1213
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}

.github/workflows/simulator-test.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353
outputs:
5454
MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }}
55+
timeout-minutes: 60
5556
steps:
5657
- name: Compute Simulator Test Matrix
5758
id: compute-matrix
@@ -79,6 +80,7 @@ jobs:
7980
image: rapidsai/ci-conda:cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}
8081
env:
8182
RAPIDS_BUILD_TYPE: ${{ inputs.build_type }}
83+
timeout-minutes: 60
8284
steps:
8385
- uses: actions/checkout@v4
8486
with:
@@ -99,6 +101,15 @@ jobs:
99101
echo "RAPIDS_NIGHTLY_DATE=${{ inputs.date }}" >> "${GITHUB_ENV}"
100102
- name: Setup proxy cache
101103
uses: nv-gha-runners/setup-proxy-cache@main
104+
- name: Compute pixi environment name
105+
run: |
106+
set -euo pipefail
107+
PIXI_ENV="cu-$(cut -d. -f1-2 <<< "${{ matrix.CUDA_VER }}" | tr . -)"
108+
echo "PIXI_ENV=${PIXI_ENV}" >> "${GITHUB_ENV}"
109+
- name: Setup pixi
110+
uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293
111+
with:
112+
environments: ${{ env.PIXI_ENV }}
102113
- name: Python tests
103114
run: ${{ inputs.script }}
104115
env:

.github/workflows/wheel-windows-build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- "3.12"
2727
- "3.13"
2828
runs-on: windows-2022
29+
timeout-minutes: 60
2930
steps:
3031
- uses: actions/checkout@v4
3132
with:

.github/workflows/wheel-windows-tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- "3.12"
2727
- "3.13"
2828
runs-on: "cuda-python-windows-gpu-github"
29+
timeout-minutes: 60
2930
steps:
3031
- uses: actions/checkout@v4
3132
with:

.github/workflows/wheels-build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
runs-on: ubuntu-latest
7777
outputs:
7878
MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }}
79+
timeout-minutes: 60
7980
steps:
8081
- name: Compute Build Matrix
8182
id: compute-matrix
@@ -102,7 +103,7 @@ jobs:
102103
image: "rapidsai/ci-wheel:cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}"
103104
env:
104105
RAPIDS_BUILD_TYPE: ${{ inputs.build_type }}
105-
106+
timeout-minutes: 60
106107
steps:
107108
- name: checkout code repo
108109
uses: actions/checkout@v4

.github/workflows/wheels-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
BUILD_TYPE: ${{ inputs.build_type }}
6868
outputs:
6969
MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }}
70+
timeout-minutes: 60
7071
steps:
7172
- name: Validate test type
7273
run: |
@@ -104,6 +105,7 @@ jobs:
104105
env:
105106
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} # GPU jobs must set this container env variable
106107
RAPIDS_BUILD_TYPE: ${{ inputs.build_type }}
108+
timeout-minutes: 60
107109
steps:
108110
- name: Run nvidia-smi to make sure GPU is working
109111
run: nvidia-smi

ci/test_conda.sh

Lines changed: 10 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44

55
set -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-
177
DISTRO=`cat /etc/os-release | grep "^ID=" | awk 'BEGIN {FS="="} { print $2 }'`
188

199
if [ "$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
2313
fi
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
4416
if [ "${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"
4619
fi
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-
6421
rapids-logger "Check GPU usage"
6522
nvidia-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-
7524
EXITCODE=0
7625
trap "EXITCODE=1" ERR
7726
set +e
7827

28+
rapids-logger "Show Numba system info"
29+
pixi run -e "${PIXI_ENV}" python -m numba --sysinfo
30+
7931
rapids-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

8234
rapids-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

8740
rapids-logger "Test script exiting with value: $EXITCODE"
8841
exit ${EXITCODE}

0 commit comments

Comments
 (0)