diff --git a/cfg/fsa-spirou/compilers.bashrc b/cfg/fsa-spirou/compilers.bashrc index 2bf97e60268d5e135bea092e324d0dab1526f828..ae8fe7ce49370130e9926ecfcec5d7669eae4f45 100644 --- a/cfg/fsa-spirou/compilers.bashrc +++ b/cfg/fsa-spirou/compilers.bashrc @@ -26,7 +26,7 @@ if [ -d /opt/intel ] ; then . /opt/intel/oneapi/tbb/latest/env/vars.sh fi -function use_intel_compilers() { +function use_intel_compilers_old() { source /opt/intel/oneapi/compiler/latest/env/vars.sh export CC=icc export CXX=icpc @@ -36,3 +36,14 @@ function use_intel_compilers() { echo " CXX=`which $CXX`" echo " FC=`which $FC`" } + +function use_intel_compilers_new() { + source /opt/intel/oneapi/compiler/latest/env/vars.sh + export CC=icx + export CXX=icpx + export FC=ifx + echo "Intel compiler enabled!" + echo " CC=`which $CC`" + echo " CXX=`which $CXX`" + echo " FC=`which $FC`" +}