Skip to content

Commit c02487f

Browse files
committed
another worflow update
1 parent c0d2d0b commit c02487f

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ jobs:
3434
with:
3535
submodules: recursive
3636

37+
- name: Load CUDA module (no Spack)
38+
shell: bash
39+
run: |
40+
export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/spack/' | paste -sd:)
41+
source /etc/profile.d/lmod.sh
42+
module purge
43+
module load nvhpc/23.11/nvhpc-hpcx-cuda12
44+
echo "PATH=$PATH"
45+
which nvcc
46+
nvcc --version
47+
nvidia-smi
48+
3749
- name: Show CUDA + driver info
3850
shell: bash
3951
run: |
@@ -47,6 +59,9 @@ jobs:
4759
4860
- name: Configure (Release)
4961
run: |
62+
source /etc/profile.d/lmod.sh
63+
module purge
64+
module load nvhpc/23.11/nvhpc-hpcx-cuda12
5065
cmake -S . -B build/ci \
5166
-DCMAKE_BUILD_TYPE=Release \
5267
-DBUILD_TESTING=ON \
@@ -60,7 +75,7 @@ jobs:
6075
- name: Show linked CUDA runtime
6176
shell: bash
6277
run: |
63-
ldd build/tests/test_cli | grep -E 'cudart|cuda' || true
78+
ldd build/ci/tests/test_cli | grep -E 'cudart|cuda' || true
6479
6580
- name: Run tests
6681
working-directory: build/ci

0 commit comments

Comments
 (0)