Skip to content

Commit

Permalink
wip ICX
Browse files Browse the repository at this point in the history
  • Loading branch information
philbucher authored Oct 29, 2023
1 parent 7110c15 commit 02cf93e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: [GCC, CLANG, ICC]
compiler: [GCC, CLANG, ICC, ICX]
mpi: [OpenMPI, IntelMPI]
exclude:
# CLANG is not properly supported by Intel, better use LLVMIntel in the future
Expand All @@ -46,10 +46,14 @@ jobs:
valgrind \
clang-11
- name: Install Intel compiler
- name: Install legacy Intel compiler
if: ${{ matrix.compiler == 'ICC' }}
run: sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic

- name: Install Intel compiler
if: ${{ matrix.compiler == 'ICX' }}
run: sudo apt-get install intel-oneapi-compiler-dpcpp-cpp

- name: Install MPI
run: |
if [ ${{ matrix.mpi }} = OpenMPI ]; then
Expand All @@ -69,12 +73,15 @@ jobs:
elif [ ${{ matrix.compiler }} = ICC ]; then
export CXX=icpc
export CC=icc
elif [ ${{ matrix.compiler }} = ICX ]; then
export CXX=icpx
export CC=icx
else
echo 'Unsupported compiler: ${{ matrix.compiler }}'
exit 1
fi
if [ ${{ matrix.compiler }} = ICC ] || [ ${{ matrix.mpi }} = IntelMPI ]; then
if [ ${{ matrix.compiler }} = ICC ] || [ ${{ matrix.compiler }} = ICX ] || [ ${{ matrix.mpi }} = IntelMPI ]; then
source /opt/intel/oneapi/setvars.sh
fi
Expand All @@ -100,7 +107,7 @@ jobs:
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin
export PATH=${PATH}:${GITHUB_WORKSPACE}/bin # required for IntelMPI
export PATH=${PATH}:${GITHUB_WORKSPACE}/bin/tests_c_mpi # required for IntelMPI
if [ ${{ matrix.compiler }} = ICC ] || [ ${{ matrix.mpi }} = IntelMPI ]; then
if [ ${{ matrix.compiler }} = ICC ] || [ ${{ matrix.compiler }} = ICX ] || [ ${{ matrix.mpi }} = IntelMPI ]; then
source /opt/intel/oneapi/setvars.sh
fi
Expand Down

0 comments on commit 02cf93e

Please sign in to comment.