Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ICX in CI #364

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading