设置mkl的环境变量

时间:2015-11-09 09:27:10

标签: sh intel-mkl

为了在linux上设置mkl工具集的环境变量,我必须执行脚本mklvars.sh。但现在我得到了错误

/opt/intel/mkl/bin/mklvars.sh: 33: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 34: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 36: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 37: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 38: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 39: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 40: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 41: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 42: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 43: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 44: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 45: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 46: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 82: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 83: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 84: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 87: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 90: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 91: /opt/intel/mkl/bin/mklvars.sh: typeset: not found
/opt/intel/mkl/bin/mklvars.sh: 92: /opt/intel/mkl/bin/mklvars.sh: typeset: not found

错误行以

开头
typeset SCRIPT_NAME=$0
typeset MOD_NAME=mod

typeset MKL_LP64_ILP64=
typeset MKL_MOD=
typeset MKL_TARGET_ARCH=
typeset MKLVARS_VERBOSE=
typeset MKL_MIC_ARCH=
typeset MKL_BAD_SWITCH=
typeset OLD_LD_LIBRARY_PATH=
typeset OLD_LIBRARY_PATH=
typeset OLD_MIC_LD_LIBRARY_PATH=
typeset OLD_NLSPATH=

我该如何解决这个问题,究竟是什么问题?

1 个答案:

答案 0 :(得分:2)

试试这个

source /opt/intel/<address>/mklvars.sh

例如,我记得我做过,

source /opt/intel/mkl/bin/mklvars.sh intel64

您需要获取环境变量。这应该可以解决您的问题。希望它有效!