diff options
author | Brad King <brad.king@kitware.com> | 2023-09-18 22:34:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-21 19:34:37 (GMT) |
commit | 6546aa2a2a2f695237a2f14745d18fc8a52b1fcf (patch) | |
tree | af007bf0891533f2e8b659ca41db41ee65d0ea74 /.gitlab | |
parent | 18158bf81ccb5269afcfa53cd671cf7f56dc70b5 (diff) | |
download | CMake-6546aa2a2a2f695237a2f14745d18fc8a52b1fcf.zip CMake-6546aa2a2a2f695237a2f14745d18fc8a52b1fcf.tar.gz CMake-6546aa2a2a2f695237a2f14745d18fc8a52b1fcf.tar.bz2 |
ci: Add HIP job using CUDA on NVIDIA GPUs
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/configure_hip5.5_nvidia.cmake | 3 | ||||
-rw-r--r-- | .gitlab/ci/env_hip5.5_nvidia.sh | 4 | ||||
-rw-r--r-- | .gitlab/os-linux.yml | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_hip5.5_nvidia.cmake b/.gitlab/ci/configure_hip5.5_nvidia.cmake new file mode 100644 index 0000000..4b3511a --- /dev/null +++ b/.gitlab/ci/configure_hip5.5_nvidia.cmake @@ -0,0 +1,3 @@ +set(CMake_TEST_HIP "nvidia" CACHE BOOL "") + +include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake") diff --git a/.gitlab/ci/env_hip5.5_nvidia.sh b/.gitlab/ci/env_hip5.5_nvidia.sh new file mode 100644 index 0000000..67d1ef2 --- /dev/null +++ b/.gitlab/ci/env_hip5.5_nvidia.sh @@ -0,0 +1,4 @@ +export HIP_PLATFORM=nvidia +export CUDA_PATH=/usr/local/cuda-11.8 +export PATH=/usr/local/cuda-11.8/bin:$PATH +export LD_LIBRARY_PATH=/usr/local/cuda-11.8/lib64 diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml index 408feee..d42340c 100644 --- a/.gitlab/os-linux.yml +++ b/.gitlab/os-linux.yml @@ -373,6 +373,13 @@ CMAKE_CONFIGURATION: fedora38_hip_radeon CTEST_LABELS: "HIP" +.hip5.5_nvidia: + extends: .hip5.5 + + variables: + CMAKE_CONFIGURATION: hip5.5_nvidia + CTEST_LABELS: "HIP" + ### C++ modules .gcc_cxx_modules_x86_64: |