上传module 压缩包至/opt目录 cd /opt tar -xvf modules-4.2.1.tar.gz ./configure --help #查看帮助页面 ./configure --prefix=/opt/modules/modules421 #指定安装目录为/opt/modules/modules421 make install make
[root@node02 init]# echo $MODULEPATH #查看默认的module path /opt/modules/modules421/modulefiles cd $MODULEPATH mkdir {application,compiler,cuda,mathlib,mpi,python,tool} 更新modulerc文件。 vim /opt/modules/modules421/init/modulerc #%Module1.0 # This file defines the initial setup for the modulefiles search path # and modulefiles you want to load by default for all users. It should # contains a lines of module command like 'module use path' and #'module load mod'
module use --append {/opt/modules/modules421/modulefiles/application} module use --append {/opt/modules/modules421/modulefiles/compiler} module use --append {/opt/modules/modules421/modulefiles/cuda} module use --append {/opt/modules/modules421/modulefiles/mathlib} module use --append {/opt/modules/modules421/modulefiles/mpi} module use --append {/opt/modules/modules421/modulefiles/python} module use --append {/opt/modules/modules421/modulefiles/tool}
#%Module 1.0 # #Edited by BYA in 2018/3/6 #Modified by BYA one day in the future # # #conflict module-whatis Intel Compiler version 2015.3.187 (icc,icpc,ifort) #module load prepend-path PATH /opt/intel/composer_xe_2015.3.187/bin/intel64 prepend-path LIBRARY_PATH /opt/intel/composer_xe_2015.3.187/compiler/lib/intel64 prepend-path LD_LIBRARY_PATH /opt/intel/composer_xe_2015.3.187/compiler/lib/intel64 prepend-path MANPATH /opt/intel/composer_xe_2015.3.187/man
setenv CC icc setenv CXX icpc setenv FC ifort setenv F77 ifort setenv F90 ifort ####