From 02cf93ed262592bae3702d08d21cf209728cda81 Mon Sep 17 00:00:00 2001 From: Philipp Bucher Date: Sun, 29 Oct 2023 22:14:38 +0100 Subject: [PATCH] wip ICX --- .github/workflows/ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa94352f..38b4b91c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 @@ -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