bash 模块加载英特尔(错误:105:无法找到“英特尔”的模块文件)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31902628/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Module load intel (ERROR:105: Unable to locate a modulefile for 'intel')
提问by user3452351
I am trying to use environment-modules in Ubuntu
I could successfully install the module package but when I tried to use
module load intel
, it gave me the following error:
我正在尝试在 Ubuntu 中使用环境模块我可以成功安装模块包但是当我尝试使用时
module load intel
,它给了我以下错误:
ERROR:105: Unable to locate a modulefile for 'intel'
I used module
avail to see what modules can be available to load
I got this:
我使用了module
avail来查看可以加载哪些模块我得到了这个:
- File /home/linux/.local/environment-modules/Modules/versions
3.2.10
- File /home/linux/.local/environment-modules/Modules/3.2.10/modulefiles
dot module-git module-info modules null use.own
Any help ?
有什么帮助吗?
回答by haraldkl
You do not get module files automatically, you would need to create your own module file in /home/linux/.local/environment-modules/Modules/3.2.10/modulefiles
, so to get a module named intel, you would need to create a file /home/linux/.local/environment-modules/Modules/3.2.10/modulefiles/intel
with a module description for your intel environment.
您不会自动获取模块文件,您需要在 中创建自己的模块文件/home/linux/.local/environment-modules/Modules/3.2.10/modulefiles
,因此要获取名为intel的模块,您需要/home/linux/.local/environment-modules/Modules/3.2.10/modulefiles/intel
为您的英特尔环境创建一个包含模块描述的文件。
Depending on your installation such a module could for example look like this:
根据您的安装,此类模块可能如下所示:
#%Module -*- tcl -*-
##
## modulefile
##
proc ModulesHelp { } {
puts stderr "\tAdds Intel compilers to your environment variables,"
}
module-whatis "adds Intel compilers to your environment variables"
set main_root /opt/intel/composer_xe/2015.1.133
prepend-path PATH $main_root/bin
prepend-path PATH $main_root/mpirt/bin/intel64
prepend-path PATH $main_root/bin/intel64
prepend-path PATH $main_root/debugger/gdb/intel64/bin
prepend-path PATH $main_root/debugger/gdb/intel64_mic/bin
prepend-path MANPATH $main_root/debugger/gdb/intel64_mic/share/man
prepend-path MANPATH $main_root/debugger/gdb/intel64/share/man
prepend-path MANPATH $main_root/man/en_US
prepend-path INFOPATH $main_root/debugger/gdb/intel64_mic/share/info
prepend-path INFOPATH $main_root/debugger/gdb/intel64/share/info
prepend-path LIBRARY_PATH $main_root/compiler/lib/intel64
prepend-path LD_LIBRARY_PATH $main_root/compiler/lib/intel64
prepend-path LD_LIBRARY_PATH $main_root/mpirt/lib/intel64
prepend-path MIC_LD_LIBRARY_PATH $main_root/compiler/lib/mic
prepend-path CPATH $main_root/compiler/include
prepend-path CPATH $main_root/compiler/include/intel64
prepend-path INTEL_LICENSE_FILE /cm/shared/licenses/intel
setenv INTEL_CC_HOME $main_root
setenv INTEL_FC_HOME $main_root
setenv INTEL_PYTHONHOME $main_root/debugger/python/intel64
You might be interested in using Lmodfor your modules environment.
您可能对在您的模块环境中使用Lmod感兴趣。