Skip to content

Commit c76be93

Browse files
authored
ci: use Intel ifx/icx compilers in Intel CI jobs (MFlowCode#1342)
1 parent fbecfc3 commit c76be93

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,20 @@ jobs:
245245
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
246246
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
247247
sudo apt-get update
248-
sudo apt-get install -y intel-oneapi-compiler-fortran intel-oneapi-mpi intel-oneapi-mpi-devel
248+
sudo apt-get install -y intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mpi intel-oneapi-mpi-devel
249249
# Export only new/changed env vars from setvars.sh.
250250
# `printenv >> $GITHUB_ENV` dumps all vars including shell internals
251251
# with special characters that corrupt GITHUB_ENV parsing.
252252
printenv | sort > /tmp/env_before
253253
source /opt/intel/oneapi/setvars.sh
254254
printenv | sort > /tmp/env_after
255255
diff /tmp/env_before /tmp/env_after | grep '^>' | sed 's/^> //' >> $GITHUB_ENV
256+
echo "FC=ifx" >> $GITHUB_ENV
257+
echo "CC=icx" >> $GITHUB_ENV
258+
echo "CXX=icpx" >> $GITHUB_ENV
259+
echo "MPIFC=mpiifx" >> $GITHUB_ENV
260+
echo "MPICC=mpiicx" >> $GITHUB_ENV
261+
echo "MPICXX=mpiicpx" >> $GITHUB_ENV
256262
257263
- name: Build
258264
run: |

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MIT
22

3+
# Intel ifx/icx CI support
34
# Developer's note:
45
# CMake has extensive documentation available online. Searching "cmake <variable>"
56
# or "cmake <function_name>" will return a cmake.org page with more information

0 commit comments

Comments
 (0)