Skip to content
Snippets Groups Projects
Commit da30b9ef authored by Boman Romain's avatar Boman Romain
Browse files

add use_intel_compilers function

parent 59bbe84d
No related branches found
No related tags found
No related merge requests found
......@@ -25,3 +25,14 @@ if [ -d /opt/intel ] ; then
. /opt/intel/oneapi/mkl/latest/env/vars.sh
. /opt/intel/oneapi/tbb/latest/env/vars.sh
fi
function use_intel_compilers() {
source /opt/intel/oneapi/compiler/latest/env/vars.sh
export CC=icc
export CXX=icpc
export FC=ifort
echo "Intel compiler enabled!"
echo " CC=`which $CC`"
echo " CXX=`which $CXX`"
echo " FC=`which $FC`"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment