diff options
author | Brad King <brad.king@kitware.com> | 2022-12-05 18:17:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-12-05 18:17:39 (GMT) |
commit | 7d2979d6eb8ee27a59ca64e897308f87146d2cb6 (patch) | |
tree | 34361dead922e5350bd60945c1809702b9fcb928 /.gitlab/ci | |
parent | e0a35098bb2874ac7d6bca5b1a989c293ad18922 (diff) | |
download | CMake-7d2979d6eb8ee27a59ca64e897308f87146d2cb6.zip CMake-7d2979d6eb8ee27a59ca64e897308f87146d2cb6.tar.gz CMake-7d2979d6eb8ee27a59ca64e897308f87146d2cb6.tar.bz2 |
gitlab-ci: Select CUDA version explicitly in NVHPC job
The job added by commit 16a5c36795 (gitlab-ci: add nightly job testing
NVHPC with Ninja on Linux, 2022-11-21) started failing after CI hosts
were updated from NVIDIA driver version 520 to version 525. Somehow
this causes the NVHPC multi-cuda `nvcc` wrapper to select CUDA 10.2
instead of 11.7 as with older driver versions.
As a workaround, add the preferred version of `nvcc` to the PATH.
Issue: #24225
Diffstat (limited to '.gitlab/ci')
-rw-r--r-- | .gitlab/ci/env_nvhpc_ninja.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab/ci/env_nvhpc_ninja.sh b/.gitlab/ci/env_nvhpc_ninja.sh index 687403d..bf465d2 100644 --- a/.gitlab/ci/env_nvhpc_ninja.sh +++ b/.gitlab/ci/env_nvhpc_ninja.sh @@ -3,3 +3,7 @@ export CXX=nvc++ export FC=nvfortran export CUDACXX=nvcc export CUDAHOSTCXX=nvc++ +# FIXME(#24225): /opt/nvidia/hpc_sdk/Linux_x86_64/22.9/compilers/bin/nvcc +# selects a CUDA version 10.2 with host driver versions > 520. +# Manually select the preferred nvcc version. +export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/22.9/cuda/11.7/bin:$PATH |