From df7b5710ed909d6b6c03ecb9b08d6593fc05c4ae Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Fri, 2 May 2025 10:42:06 -0700 Subject: [PATCH] Fix HIP CI by disabling IPO --- .github/workflows/hip.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/hip.yml b/.github/workflows/hip.yml index 2ba76ca4..627e2bb8 100644 --- a/.github/workflows/hip.yml +++ b/.github/workflows/hip.yml @@ -9,7 +9,7 @@ concurrency: jobs: build_hip: name: ROCm HIP 6.3.2 - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 env: CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed" CMAKE_GENERATOR: Ninja @@ -46,20 +46,12 @@ jobs: python3 -m pip install -U build packaging setuptools[core] wheel python3 -m pip install -U cmake - # "mpic++ --showme" forgets open-pal in Ubuntu 20.04 + OpenMPI 4.0.3 - # https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1941786 - # https://github.com/open-mpi/ompi/issues/9317 - export LDFLAGS="-lopen-pal" - cmake -S . -B build \ -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DpyAMReX_IPO=OFF \ -DAMReX_GPU_BACKEND=HIP \ - -DAMReX_SPACEDIM="1;2;3" \ - -DCMAKE_C_COMPILER=$(which clang) \ - -DCMAKE_CXX_COMPILER=$(which clang++) \ - -DAMReX_AMD_ARCH=gfx1010 \ - -DAMReX_ROCTX=ON \ - -DCMAKE_CXX_STANDARD=17 + -DAMReX_AMD_ARCH=gfx90a \ + -DAMReX_SPACEDIM="1;2;3" cmake --build build --target pip_install -j 4 ccache -s