summarylogtreecommitdiffstats
path: root/intel_compilers.sh
blob: 2c83e6c8689f5171679d45d4fb9f0ec2ca467652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/bash

TMP_LLP=$LD_LIBRARY_PATH
if [ -z $TMP_LLP ] ; then
  LLP_NULL=true ;
else
  LLP_NULL=false ;
fi

if [ -f /opt/intel/composerxe/linux/bin/compilervars.sh ] ; then
. /opt/intel/composerxe/linux/bin/compilervars.sh <arch>
fi
#. /opt/intel/composerxe/bin/iccvars.sh <arch>

PATH=$PATH:/opt/intel/bin
export PATH

if [ $LLP_NULL ] ; then
  unset LD_LIBRARY_PATH
else
  LD_LIBRARY_PATH=$TMP_LLP
  export LD_LIBRARY_PATH
fi

export INTEL_LICENSE_FILE=/opt/intel/licenses