在环境模块中设置 open-mpi

问题描述 投票:0回答:0

我尝试在环境模块中设置开放的 mpi。 首先,当我使用此命令时: module load mpi/openmpi-x86_64 ,错误: ModuleCmd_Load.c(213):ERROR:105: Unable to locate a modulefile for 'mpi/openmpi-x86_64' occurs.

模块中没有'mpi'可用(见下文),模块文件目录(/usr/share/Modules/modulefiles)中也没有与mpi相关的模块文件。请注意,openmpi 安装在此路径中:/opt/openmpi/gcc-4.8.5/4.0.4/ .

据我所知,我必须在模块文件目录中创建一个模块文件。 (这是对的吗?) 但是我不知道如何在这个目录中制作这个模块文件。我怎样才能制作这个文件? 我认为文件 'modulefile-git' 或文件 'modulefile-info' 可以为这个问题提供一些提示,但我可以抓住它。我在下面附上了modulefile-git的代码。

如果你愿意帮助我,我将不胜感激。 谢谢!

  • 我曾尝试为 openmpi 编写“模块文件” 我希望“模块加载 mpi/openmpi-x86_64”命令有效。

--- 模块文件-git ---

#%Module1.0#####################################################################
##
## module-cvs modulefile
##
## modulefiles/module-git.  Generated from module-git.in by configure.
##
proc ModulesHelp { } {
        global version

        puts stderr "\tThis module will set up an alias"
        puts stderr "\tfor easy anonymous check-out of this version of the"
        puts stderr "\tenvironment modules package."
        puts stderr "\get-modules       - retrieve modules sources for this version"
        puts stderr "\n\tVersion $version\n"
}

# for Tcl script use only
set      version                3.2.10
set     _version_               [ string map {. -} $version ]

module-whatis   "get this version of the module sources from SourceForge.net"

set-alias get-modules "git clone git://git.code.sf.net/p/modules/git modules-$_version_ && cd modules-$_version_ && git checkout modules-$_version_"

if [ module-info mode load ] {
        ModulesHelp
}
linux module openmpi
© www.soinside.com 2019 - 2024. All rights reserved.