英特尔Parallel Studio 2018 Mac安装问题

时间:2017-11-03 19:06:27

标签: intel-mkl

我正在尝试在Mac(Sierra OS)上安装Intel Parallel studio 2018。我应该设置环境变量。我试过了

source /opt/intel/compilers_and_libraries_2018.0.104/mac/mkl/bin/mklvars.sh  intel64
source /opt/intel/compilers_and_libraries_2018.0.104/mac/bin/compilervars.sh intel64

然而,当我尝试从终端运行icc或icpc时,我收到错误

-bash: icc: command not found

如何正确设置MKL库?我做错了什么?

1 个答案:

答案 0 :(得分:0)

要正确设置英特尔MKL,必须添加.bash_profile

source /opt/intel/compilers_and_libraries_2018.0.104/mac/bin/compilervars.sh intel64
source /opt/intel/compilers_and_libraries_2018.0.104/mac/mkl/bin/mklvars.sh intel64

export DYLD_LIBRARY_PATH="/opt/intel/compilers_and_libraries/mac/lib:$DYLD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="/opt/intel/compilers_and_libraries_2018.0.104/mac/compiler/:$DYLD_LIBRARY_PATH"