Skip to content
Open
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
7 changes: 7 additions & 0 deletions .github/workflows/buildcupy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@ jobs:
uv sync --locked --extra advanced \
--extra stat --extra gpu-cu12 \
--extra deep-cu128 --all-groups
# numba resolves libNVVM via CUDA_HOME and needs a versioned
# libnvvm.so.N (the pip wheel only ships a bare libnvvm.so), so
# add the symlink once here against the wheel-provided toolkit.
ln -sf libnvvm.so .venv/lib/python3.11/site-packages/nvidia/cuda_nvcc/nvvm/lib64/libnvvm.so.4
'
echo "done!"
- name: Test with pytest
run: |
srun --account=yuxilab -n 1 -N 1 --gres=gpu:L40S:1 bash -c '
# Use the pip-installed CUDA 12.8 toolkit (matches the 12.8 driver),
# not any system CUDA on the runner, so numba emits PTX <= 8.7.
export CUDA_HOME="$PWD/.venv/lib/python3.11/site-packages/nvidia/cuda_nvcc"
export CUPY_PYLOPS=1
export TEST_CUPY_PYLOPS=1
uv run pytest --color=yes pytests/
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ advanced = [
"astra-toolbox; sys_platform == 'linux'",
"devito"
]
gpu-cu12 = ["cupy-cuda12x"]
gpu-cu12 = ["cupy-cuda12x", "nvidia-cuda-nvcc-cu12<12.9"]
gpu-cu13 = ["cupy-cuda13x"]
stat = ["pytensor", "pymc"]
deep = ["torch", "jax"]
Expand Down
Loading
Loading