5.设置环境变量
|
编辑/opt/intel/intel2019u5.sh文件,内容如下 source /opt/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64 source /opt/intel/mkl/bin/mklvars.sh intel64 source /opt/intel/impi/2019.5.281/intel64/bin/mpivars.sh 以上设置了intel 编译器,intel数学库,intel mpi的环境变量 用户运行 source /opt/intel/intel2019u5.sh 即可设置好环境变量 把source /opt/intel/intel2019u5.sh加入~/.bashrc文件里,用户登录后即可生效。 |
本文详细介绍了如何通过编辑Intel提供的shell脚本来设置Intel编译器、数学库(MKL)及MPI环境变量。用户只需将特定脚本加入~/.bashrc中,登录后即可自动加载这些环境变量。

被折叠的 条评论
为什么被折叠?



