Skip to content

Commit

Permalink
Fix Github Action for AOCL
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Jun 5, 2023
1 parent edba522 commit ab1b35d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ jobs:
export FC=gfortran-11
fi
if [[ "${{ matrix.math-libs }}" == 'aocl' ]]; then
export LD_LIBRARY_PATH=$AOCLROOT/lib:$LD_LIBRARY_PATH
export AOCLROOT=/opt/amd
export LD_LIBRARY_PATH=$AOCLROOT/lib:$LD_LIBRARY_PATH
fi
export NUM_PROC_BUILD=$(nproc 2> /dev/null || sysctl -n hw.ncpu)
if [[ "$NUM_PROC_BUILD" -gt "$NUM_PROC_BUILD_MAX" ]]; then
Expand Down Expand Up @@ -211,6 +211,10 @@ jobs:
NUM_PROC_TEST=$NUM_PROC_TEST_MAX
fi
export PATH=$(pwd)/palace-install/bin:$PATH
if [[ "${{ matrix.math-libs }}" == 'aocl' ]]; then
export AOCLROOT=/opt/amd
export LD_LIBRARY_PATH=$AOCLROOT/lib:$LD_LIBRARY_PATH
fi
if [[ "${{ matrix.build-shared }}" == 'true' ]]; then
export LD_LIBRARY_PATH=$(pwd)/palace-install/lib:$(pwd)/palace-install/lib64:$LD_LIBRARY_PATH
fi
Expand Down

0 comments on commit ab1b35d

Please sign in to comment.