Skip to content

Commit

Permalink
Make github hip workflow more similar to amrex workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsexton03 committed Sep 5, 2021
1 parent 4c52fd0 commit 0aa9b2a
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,36 @@ jobs:
run: |
source /etc/profile.d/rocm.sh
hipcc --version
# "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_adiabatic \
-DNyx_HEATCOOL=no \
-DNyx_HYDRO=yes \
-DNyx_OMP=no \
-DNyx_GPU_BACKEND=HIP \
-DAMReX_AMD_ARCH=gfx900 \
-DAMReX_AMD_ARCH=gfx908 \
-DCMAKE_C_COMPILER=$(which clang) \
-DCMAKE_CXX_COMPILER=$(which hipcc)
-DCMAKE_CXX_COMPILER=$(which hipcc) \
-DCMAKE_CXX_COMPILER_ID="Clang" \
-DCMAKE_CXX_COMPILER_VERSION=12.0 \
-DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT="17" \
-DCMAKE_CXX_STANDARD=17
cmake --build build_adiabatic --parallel 2
cmake -S . -B build \
-DNyx_HEATCOOL=yes \
-DNyx_HYDRO=yes \
-DNyx_OMP=no \
-DNyx_GPU_BACKEND=HIP \
-DAMReX_AMD_ARCH=gfx900 \
-DAMReX_AMD_ARCH=gfx908 \
-DCMAKE_C_COMPILER=$(which clang) \
-DCMAKE_CXX_COMPILER=$(which hipcc)
-DCMAKE_CXX_COMPILER=$(which hipcc) \
-DCMAKE_CXX_COMPILER_ID="Clang" \
-DCMAKE_CXX_COMPILER_VERSION=12.0 \
-DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT="17" \
-DCMAKE_CXX_STANDARD=17
cmake --build build --parallel 2

0 comments on commit 0aa9b2a

Please sign in to comment.