Speculative ROCm fix in CI

This commit is contained in:
Paul R. C. Kent 2022-10-06 16:47:25 -04:00 committed by GitHub
parent f92e927150
commit dac14daa30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -227,6 +227,11 @@ case "$1" in
;;
*"ROCm-Clang13-NoMPI-CUDA2HIP"*)
echo 'Configure for building CUDA2HIP with clang compilers shipped with ROCM on AMD hardware'
export ROCM_PATH=/opt/rocm
# Make current environment variables available to subsequent steps
echo "ROCM_PATH=/opt/rocm" >> $GITHUB_ENV
cmake -GNinja \
-DCMAKE_C_COMPILER=/opt/rocm/llvm/bin/clang \
-DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++ \
@ -243,10 +248,12 @@ case "$1" in
*"ROCm-Clang13-MPI-Legacy-CUDA2HIP"*)
echo 'Configure for building CUDA2HIP with clang compilers shipped with ROCM on AMD hardware'
export ROCM_PATH=/opt/rocm
export OMPI_CC=/opt/rocm/llvm/bin/clang
export OMPI_CXX=/opt/rocm/llvm/bin/clang++
# Make current environment variables available to subsequent steps
echo "ROCM_PATH=/opt/rocm" >> $GITHUB_ENV
echo "OMPI_CC=/opt/rocm/llvm/bin/clang" >> $GITHUB_ENV
echo "OMPI_CXX=/opt/rocm/llvm/bin/clang++" >> $GITHUB_ENV