diff options
author | Brad King <brad.king@kitware.com> | 2023-07-27 17:25:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-07-31 16:08:36 (GMT) |
commit | 1177d5c127598b0fb62b8d5f00a907541cf6beb9 (patch) | |
tree | 3ee0052bd25a76be43fd64ca213bc67dcbd61ba7 /.gitlab | |
parent | eb9195e9ef6fd299b25d44b966129c587ec46e2d (diff) | |
download | CMake-1177d5c127598b0fb62b8d5f00a907541cf6beb9.zip CMake-1177d5c127598b0fb62b8d5f00a907541cf6beb9.tar.gz CMake-1177d5c127598b0fb62b8d5f00a907541cf6beb9.tar.bz2 |
ci: Add HIP job based on Debian image
The Debian package for `hipcc` organizes the `hip-lang` cmake package
differently from the official ROCm base images. Cover it separately.
Issue: #24562
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/configure_debian12_hip_radeon.cmake | 3 | ||||
-rw-r--r-- | .gitlab/ci/env_debian12_hip_radeon.sh | 9 | ||||
-rw-r--r-- | .gitlab/os-linux.yml | 7 |
3 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_debian12_hip_radeon.cmake b/.gitlab/ci/configure_debian12_hip_radeon.cmake new file mode 100644 index 0000000..58036b0 --- /dev/null +++ b/.gitlab/ci/configure_debian12_hip_radeon.cmake @@ -0,0 +1,3 @@ +set(CMake_TEST_HIP "ON" CACHE BOOL "") + +include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake") diff --git a/.gitlab/ci/env_debian12_hip_radeon.sh b/.gitlab/ci/env_debian12_hip_radeon.sh new file mode 100644 index 0000000..793c985 --- /dev/null +++ b/.gitlab/ci/env_debian12_hip_radeon.sh @@ -0,0 +1,9 @@ +export HIPCXX=/usr/bin/clang++-15 +export HIPFLAGS='--rocm-path=/usr --rocm-device-lib-path=/usr/lib/x86_64-linux-gnu/amdgcn/bitcode' + +# FIXME(debian): Clang is supposed to automatically parse a HIP version file. +# The ROCm installer places it at '$prefix/bin/.hipVersion', but the package +# on Debian moves it to '$prefix/share/hip/version'. llvm-toolchain package +# version 15.0.7-4 has 'debian/patches/amdgpu/usr-search-paths.patch' for this, +# but Debian 12 currently provides version 15.0.6-4 without the patch. +export HIPFLAGS="$HIPFLAGS --hip-version=5.2" diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml index def66de..9563d55 100644 --- a/.gitlab/os-linux.yml +++ b/.gitlab/os-linux.yml @@ -359,6 +359,13 @@ CMAKE_CONFIGURATION: hip5.5_radeon CMAKE_GENERATOR: "Ninja Multi-Config" +.debian12_hip_radeon: + extends: .debian12 + + variables: + CMAKE_CONFIGURATION: debian12_hip_radeon + CTEST_LABELS: "HIP" + ### C++ modules .gcc_cxx_modules_x86_64: |