mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
fixed icc
This commit is contained in:
parent
96fef27be2
commit
e55dfcd632
1 changed files with 23 additions and 24 deletions
17
zsh/icc
17
zsh/icc
|
@ -1,9 +1,6 @@
|
||||||
local iccvars_path;
|
local iccvars_path;
|
||||||
# are we linux?
|
iccvars_path=$(echo /opt/intel/Compiler/11.*/*/bin/iccvars.sh(On[1]))
|
||||||
case `uname -s` in
|
if [[ -r $iccvars_path ]] ; then
|
||||||
Linux)
|
|
||||||
iccvars_path=/opt/intel/Compiler/11.0/074/bin/iccvars.sh
|
|
||||||
if [[ -r $iccvars_path ]] ; then
|
|
||||||
case `uname -m` in
|
case `uname -m` in
|
||||||
x86_64)
|
x86_64)
|
||||||
source $iccvars_path intel64
|
source $iccvars_path intel64
|
||||||
|
@ -15,11 +12,13 @@ case `uname -s` in
|
||||||
source $iccvars_path ia64
|
source $iccvars_path ia64
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
else
|
||||||
|
if [[ `uname -m` == x86_64 ]] ; then
|
||||||
|
iccvars_path=$(echo /opt/intel/cce/(10|9).*/bin/iccvars.sh(On[1]))
|
||||||
else
|
else
|
||||||
iccvars_path=/opt/intel/cc/10.1.018/bin/iccvars.sh
|
iccvars_path=$(echo /opt/intel/cc/(10|9).*/bin/iccvars.sh(On[1]))
|
||||||
|
fi
|
||||||
if [[ -r $iccvars_path ]] ; then
|
if [[ -r $iccvars_path ]] ; then
|
||||||
source $iccvars_path
|
source $iccvars_path
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue