File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ include :
2+ - local : ' .gitlab/includes/common_pipeline.yml'
3+
4+ stages :
5+ - build
6+ - test
7+
8+ variables :
9+ UENV_IMAGE : " prgenv-gnu/25.6:v2"
10+ WITH_UENV_VIEW : " default"
11+ SLURM_PARTITION : " normal"
12+
13+
14+ build_benchmarks_gh200 :
15+ extends :
16+ - .uenv-runner-daint-gh200
17+ - .cmake_common
18+ - .build_common
19+ stage : build
20+ image : $UENV_IMAGE
21+ script :
22+ - cmake --version
23+ - nvcc --version || echo "CUDA not found in PATH"
24+
25+ - cmake -Bbuild $CMAKE_COMMON_FLAGS
26+ -DWITH_HIP=OFF
27+ -DWITH_CUDA=ON
28+ - cmake --build build
29+
30+ artifacts :
31+ paths :
32+ - build/
33+ expire_in : 1 hour
34+
35+
36+ test_benchmarks_gh200 :
37+ needs : [build_benchmarks_gh200]
38+ extends :
39+ - .uenv-runner-daint-gh200
40+ - .test_common
41+ stage : test
42+ image : $UENV_IMAGE
43+ script :
44+ - ctest --test-dir build --output-on-failure
Original file line number Diff line number Diff line change 1+ include :
2+ - local : ' .gitlab/includes/pipeline_daint.yml'
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ option(WITH_HIP "Enable building for AMD GPUs" ON)
1818if (WITH_CUDA)
1919 check_language (CUDA )
2020 if (CMAKE_CUDA_COMPILER)
21+ if (NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
22+ set (CMAKE_CUDA_ARCHITECTURES 90)
23+ endif ()
2124 enable_language (CUDA )
2225 find_package (CUDAToolkit )
2326 set (CMAKE_CUDA_STANDARD 20)
@@ -30,6 +33,9 @@ endif()
3033if (WITH_HIP)
3134 check_language (HIP )
3235 if (CMAKE_HIP_COMPILER)
36+ if (NOT DEFINED CMAKE_HIP_ARCHITECTURES)
37+ set (CMAKE_HIP_ARCHITECTURES gfx90a gfx942)
38+ endif ()
3339 enable_language (HIP )
3440 find_package (hip )
3541 set (CMAKE_HIP_STANDARD 20)
You can’t perform that action at this time.
0 commit comments