Skip to content

Commit

Permalink
github actions: Switch compilation test with intel compiler from ifor…
Browse files Browse the repository at this point in the history
…t to ifx

By Caspar Jungbacker. Intel released a new version of the oneAPI toolkit (version 2024)
and this broke the builds in the Intel CI/CD pipelines. Fixed by removing the manual copies
of libimf, libintlc, libsvml and libirng. I also changed the compiler for NetCDF from ifort
to the newer ifx, since ifort is set to be discontinued in 2024.

Still to do:
* update the CMake file to also use ifx
* drop the Cartesius SYST option
* make the CI test use another SYST
  • Loading branch information
fjansson committed Dec 7, 2023
1 parent cde8e76 commit fa44153
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,10 @@ jobs:
if: matrix.toolchain == 'intel'
run: |
source /opt/intel/oneapi/setvars.sh
#make sure ifort is found
sudo ln -s `which ifort` /usr/bin/ifort
#make sure ifx is found
sudo ln -s `which ifx` /usr/bin/ifx
cd netcdf-fortran
NCDIR=/usr FC=/usr/bin/ifort ./configure
#fix weird bug where libmf et al are not found
sudo cp /opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64/libimf.so \
/opt/intel/oneapi/compiler/latest/linux/lib/
sudo cp /opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64/libintlc.so.5 \
/opt/intel/oneapi/compiler/latest/linux/lib/
sudo cp /opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64/libsvml.so \
/opt/intel/oneapi/compiler/latest/linux/lib/
sudo cp /opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64/libirng.so \
/opt/intel/oneapi/compiler/latest/linux/lib/
NCDIR=/usr FC=/usr/bin/ifx ./configure
sudo make -j2
sudo make install
Expand Down

0 comments on commit fa44153

Please sign in to comment.