├── cuda ├── .version └── 10.0 ├── gcc ├── .version └── 7.3.1 ├── go ├── .version ├── golang └── go-toolset-7 ├── julia ├── .version └── 1.0.2 ├── llvm ├── .version └── 5.0.1 ├── git ├── .version └── sclo-git25 ├── intel ├── .version └── 2019.1.144 ├── intel_fpga ├── .version ├── 17.1 └── 18.1 ├── mpi ├── intel_mpi_2019.1.144 ├── openmpi_2.1.2-pgi_18.10 └── openmpi_2.1.2-pgi-llvm_18.10 ├── nodejs ├── .version └── 10.10.0 ├── pgi ├── .version ├── 18.10 └── llvm_18.10 ├── python ├── .version ├── anaconda2 ├── intelpython2 ├── anaconda3 ├── intelpython3 └── rh-python36 ├── PrgEnv-pgi ├── .version ├── 18.10 └── llvm_18.10 ├── PrgEnv-intel ├── .version └── 2019.1.053 ├── .gitignore ├── intel_parallel_studio ├── intelpython3 ├── compiler_arch_2019.1.144 ├── inspector_2019.1.0.579146 ├── advisor_2019.1.0.579143 ├── vtune_amplifier_2019.1.0.579888 ├── clck_2019.0 ├── tbb_2019.1.144 ├── ipp_2019.1.144 ├── pstl_2019.1.144 ├── debugger_2019 ├── daal_2019.1.144 ├── itac_2019.1.022 ├── mkl_2019.1.144 ├── mpi_2019.1.144 ├── parallel_studio_xe_2019.1.053 └── compilers_2019.1.144 ├── PrgEnv-gcc └── 7.3.1 ├── LICENSE └── README.md /cuda/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "10.0" 3 | -------------------------------------------------------------------------------- /gcc/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "7.3.1" 3 | -------------------------------------------------------------------------------- /go/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "golang" 3 | -------------------------------------------------------------------------------- /julia/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "1.0.2" 3 | -------------------------------------------------------------------------------- /llvm/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "5.0.1" 3 | -------------------------------------------------------------------------------- /git/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "sclo-git25" 3 | -------------------------------------------------------------------------------- /intel/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "2019.1.144" 3 | -------------------------------------------------------------------------------- /intel/2019.1.144: -------------------------------------------------------------------------------- 1 | ../intel_parallel_studio/compilers_2019.1.144 -------------------------------------------------------------------------------- /intel_fpga/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "17.1" 3 | -------------------------------------------------------------------------------- /mpi/intel_mpi_2019.1.144: -------------------------------------------------------------------------------- 1 | ../intel_parallel_studio/mpi_2019.1.144 -------------------------------------------------------------------------------- /nodejs/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "10.10.0" 3 | -------------------------------------------------------------------------------- /pgi/.version: -------------------------------------------------------------------------------- 1 | #%Module1.0 2 | set ModulesVersion "18.10" 3 | -------------------------------------------------------------------------------- /python/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "anaconda3" 3 | -------------------------------------------------------------------------------- /PrgEnv-pgi/.version: -------------------------------------------------------------------------------- 1 | #%Module1.0 2 | set ModulesVersion "18.10" 3 | -------------------------------------------------------------------------------- /PrgEnv-intel/.version: -------------------------------------------------------------------------------- 1 | #%Module 2 | set ModulesVersion "2019.1.053" 3 | -------------------------------------------------------------------------------- /PrgEnv-intel/2019.1.053: -------------------------------------------------------------------------------- 1 | ../intel_parallel_studio/parallel_studio_xe_2019.1.053 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Swap 2 | [._]*.s[a-v][a-z] 3 | [._]*.sw[a-p] 4 | [._]s[a-rt-v][a-z] 5 | [._]ss[a-gi-z] 6 | [._]sw[a-p] 7 | 8 | # Session 9 | Session.vim 10 | 11 | # Temporary 12 | .netrwhist 13 | *~ 14 | # Auto-generated tag files 15 | tags 16 | # Persistent undo 17 | [._]*.un~ 18 | -------------------------------------------------------------------------------- /go/golang: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## go modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tSets up environment for official Go release\n" 7 | } 8 | 9 | module-whatis "sets up environment for official Go release" 10 | 11 | append-path PATH /usr/local/go/bin 12 | 13 | conflict go 14 | -------------------------------------------------------------------------------- /python/anaconda2: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## anaconda2 modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tAdds Anaconda Python 2 to your PATH environment variable\n" 7 | } 8 | 9 | module-whatis "adds Anaconda Python 2 to your PATH environment variable" 10 | 11 | prepend-path PATH ~/anaconda2/bin 12 | conflict python 13 | -------------------------------------------------------------------------------- /python/intelpython2: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## intelpython2 modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tAdds Intel Python 2 to your PATH environment variable\n" 7 | } 8 | 9 | module-whatis "adds Intel Python 2 to your PATH environment variable" 10 | 11 | prepend-path PATH ~/intelpython2/bin 12 | conflict python 13 | -------------------------------------------------------------------------------- /python/anaconda3: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## anaconda3 modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tAdds Anaconda Python 3 to your PATH environment variable\n" 7 | } 8 | 9 | module-whatis "adds Anaconda Python 3 to your PATH environment variable" 10 | 11 | prepend-path PATH $env(HOME)/anaconda3/bin 12 | conflict python 13 | -------------------------------------------------------------------------------- /python/intelpython3: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## intelpython3 modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tAdds Intel Python 3 to your PATH environment variable\n" 7 | } 8 | 9 | module-whatis "adds Intel Python 3 to your PATH environment variable" 10 | 11 | prepend-path PATH $env(HOME)/anaconda3/bin 12 | conflict python 13 | -------------------------------------------------------------------------------- /intel_parallel_studio/intelpython3: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## intelpython3 modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tAdds Intel Python 3 to your PATH environment variable\n" 7 | } 8 | 9 | module-whatis "adds Intel Python 3 to your PATH environment variable" 10 | 11 | prepend-path PATH /opt/intel/intelpython3/bin 12 | conflict python 13 | -------------------------------------------------------------------------------- /git/sclo-git25: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## git modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tSets up environment for SCL sclo-git25\n" 7 | } 8 | 9 | module-whatis "sets up environment for SCL sclo-git25" 10 | 11 | # for Tcl script use only 12 | set root /opt/rh/sclo-git25/root 13 | 14 | prepend-path PATH $root/usr/bin 15 | prepend-path MANPATH $root/usr/share/man 16 | setenv PERL5LIB $root/usr/share/perl5/vendor_perl 17 | 18 | conflict git 19 | -------------------------------------------------------------------------------- /julia/1.0.2: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## julia 1.0.2 modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for Julia v$version\n" 9 | } 10 | 11 | module-whatis "sets up environment for Julia v1.0.2" 12 | 13 | # for Tcl script use only 14 | set version 1.0.2 15 | set root /usr/local/julia-${version} 16 | 17 | append-path PATH $root/bin 18 | append-path MANPATH $root/share/man 19 | 20 | conflict julia 21 | -------------------------------------------------------------------------------- /cuda/10.0: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## CUDA modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for CUDA v$version\n" 9 | } 10 | 11 | module-whatis "sets up environment for CUDA v10.0" 12 | 13 | # for Tcl script use only 14 | set version 10.0 15 | set root /usr/local/cuda-${version} 16 | 17 | setenv CUDA_HOME $root 18 | 19 | append-path PATH $root/bin 20 | append-path MANPATH $root/doc/man 21 | # append-path LD_LIBRARY_PATH $root/lib64 22 | 23 | conflict cuda 24 | -------------------------------------------------------------------------------- /intel_parallel_studio/compiler_arch_2019.1.144: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/pkg_bin/compilervars_arch.sh intel64 3 | 4 | # for Tcl script use only 5 | set version 2019.1.144 6 | set root /opt/intel/compilers_and_libraries_${version}/linux 7 | 8 | setenv INTEL_LICENSE_FILE /opt/intel/licenses 9 | 10 | prepend-path PATH $root/bin/intel64 11 | prepend-path LD_LIBRARY_PATH $root/compiler/lib/intel64_lin 12 | prepend-path MANPATH /opt/intel/man/common 13 | prepend-path NLSPATH $root/compiler/lib/intel64/locale/%l_%t/%N 14 | -------------------------------------------------------------------------------- /intel_parallel_studio/inspector_2019.1.0.579146: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel Inspector modulefile 4 | ## 5 | # /opt/intel/inspector_2019.1.0.579146/inspxe-vars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel Inspector v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel Inspector v2019.1.0.579146" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.0.579146 16 | set root /opt/intel/inspector_${version} 17 | 18 | setenv INSPECTOR_2019_DIR $root 19 | prepend-path PATH $root/bin64 20 | -------------------------------------------------------------------------------- /python/rh-python36: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## rh-python36 modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tSets up environment for SCL rh-python36\n" 7 | } 8 | 9 | module-whatis "sets up environment for SCL rh-python36" 10 | 11 | # for Tcl script use only 12 | set root /opt/rh/rh-python36/root 13 | 14 | prepend-path LD_LIBRARY_PATH $root/usr/lib64 15 | prepend-path MANPATH $root/usr/share/man 16 | prepend-path PATH $root/usr/bin 17 | prepend-path PKG_CONFIG_PATH $root/usr/lib64/pkgconfig 18 | prepend-path XDG_DATA_DIRS $root/usr/share 19 | 20 | conflict python 21 | -------------------------------------------------------------------------------- /go/go-toolset-7: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## go modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | puts stderr "\tSets up environment for SCL go-toolset-7\n" 7 | } 8 | 9 | module-whatis "sets up environment for SCL go-toolset-7" 10 | 11 | # for Tcl script use only 12 | set root /opt/rh/go-toolset-7/root 13 | 14 | prepend-path GOPATH $env(HOME)/go:$root/usr/share/gocode 15 | prepend-path LD_LIBRARY_PATH $root/usr/lib64 16 | prepend-path MANPATH $root/usr/share/man: 17 | prepend-path PATH $root/usr/bin:$root/usr/sbin 18 | prepend-path PKG_CONFIG_PATH $root/usr/lib64/pkgconfig 19 | 20 | conflict go 21 | -------------------------------------------------------------------------------- /intel_parallel_studio/advisor_2019.1.0.579143: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel Advisor modulefile 4 | ## 5 | # /opt/intel/advisor_2019.1.0.579143/advixe-vars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel Advisor v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel Advisor v2019.1.0.579143" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.0.579143 16 | set root /opt/intel/advisor_${version} 17 | 18 | setenv ADVISOR_2019_DIR $root 19 | prepend-path PATH $root/bin64 20 | prepend-path PYTHONPATH $root/pythonapi 21 | -------------------------------------------------------------------------------- /nodejs/10.10.0: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## nodejs modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for node.js v$version," 9 | puts stderr "\tprovided by SCL rh-nodejs10\n" 10 | } 11 | 12 | module-whatis "sets up environment for node.js v10.10.0" 13 | 14 | # for Tcl script use only 15 | set version 10.10.0 16 | set root /opt/rh/rh-nodejs10/root 17 | 18 | prepend-path LD_LIBRARY_PATH $root/usr/lib64 19 | prepend-path MANPATH $root/usr/share/man: 20 | prepend-path PATH $root/usr/bin 21 | prepend-path PYTHONPATH $root/usr/lib/python2.7/site-packages 22 | 23 | conflict nodejs 24 | -------------------------------------------------------------------------------- /PrgEnv-gcc/7.3.1: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## PrgEnv-gcc modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up GCC Programming Environment v$version\n" 9 | } 10 | 11 | module-whatis "sets up GCC Programming Environment v7.3.1" 12 | 13 | # for Tcl script use only 14 | set version 7.3.1 15 | 16 | if { [ module-info mode load ] || [ module-info mode switch2 ] } { 17 | module load gcc/7.3.1 18 | } 19 | 20 | if { [ module-info mode remove ] || [ module-info mode switch1 ] } { 21 | module unload gcc/7.3.1 22 | } 23 | 24 | conflict PrgEnv 25 | conflict PrgEnv-intel 26 | conflict PrgEnv-pgi 27 | conflict PrgEnv-gcc 28 | -------------------------------------------------------------------------------- /intel_parallel_studio/vtune_amplifier_2019.1.0.579888: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## VTune Amplifier modulefile 4 | ## 5 | # /opt/intel/vtune_amplifier_2019.1.0.579888/amplxe-vars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel VTune Amplifier $version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel VTune Amplifier 2019.1.0.579888" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.0.579888 16 | set root /opt/intel/vtune_amplifier_${version} 17 | 18 | setenv VTUNE_AMPLIFIER_2019_DIR $root 19 | prepend-path PATH $root/bin64 20 | prepend-path PKG_CONFIG_PATH $root/include/pkgconfig/lib64 21 | -------------------------------------------------------------------------------- /intel_parallel_studio/clck_2019.0: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel Cluster Checker modulefile 4 | ## 5 | # /opt/intel/clck/2019.0/bin/clckvars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel Cluster Checker v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel Cluster Checke v2019.0" 13 | 14 | # for Tcl script use only 15 | set version 2019.0 16 | set root /opt/intel/clck/${version} 17 | 18 | setenv CLCK_ROOT $root 19 | 20 | prepend-path PATH $root/bin/intel64 21 | prepend-path CPLUS_INCLUDE_PATH $root/include 22 | prepend-path LIBRARY_PATH $root/lib/intel64 23 | prepend-path MANPATH $root/man 24 | -------------------------------------------------------------------------------- /llvm/5.0.1: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## LLVM modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for LLVM v$version," 9 | puts stderr "\tprovided by SCL llvm-toolset-7\n" 10 | } 11 | 12 | module-whatis "sets up environment for LLVM v5.0.1" 13 | 14 | # for Tcl script use only 15 | set version 5.0.1 16 | set root /opt/rh/llvm-toolset-7/root 17 | 18 | prepend-path LD_LIBRARY_PATH $root/usr/lib64 19 | prepend-path MANPATH $root/usr/share/man: 20 | prepend-path PATH $root/usr/bin:$root/usr/sbin 21 | prepend-path PKG_CONFIG_PATH $root/usr/lib64/pkgconfig 22 | prepend-path PYTHONPATH $root/usr/lib/python2.7/site-packages 23 | 24 | conflict gcc 25 | -------------------------------------------------------------------------------- /intel_parallel_studio/tbb_2019.1.144: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## TBB modulefile 4 | ## 5 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/tbb/bin/tbbvars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel TBB (Threading Building Blocks) $version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel TBB (Threading Building Blocks) 2019.1.144" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.144 16 | set root /opt/intel/compilers_and_libraries_${version}/linux 17 | set tbb $root/tbb 18 | 19 | setenv TBBROOT $tbb 20 | 21 | prepend-path CPATH $tbb/include 22 | prepend-path LD_LIBRARY_PATH $tbb/lib/intel64/gcc4.7 23 | prepend-path LIBRARY_PATH $tbb/lib/intel64/gcc4.7 24 | -------------------------------------------------------------------------------- /mpi/openmpi_2.1.2-pgi_18.10: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel MPI modulefile 4 | ## 5 | # /opt/pgi/modulefiles/openmpi/2.1.2/2018 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Open MPI v$version," 10 | puts stderr "\tbuilt with the PGI Compilers and Tools v18.10\n" 11 | } 12 | 13 | module-whatis "sets up environment for Open MPI v2.1.2 with PGI v18.10" 14 | 15 | # for Tcl script use only 16 | set version 2.1.2 17 | set target linux86-64 18 | set libdir /opt/pgi/$target/2018/mpi/openmpi-$version 19 | 20 | if ![ is-loaded pgi/18.10 ] { 21 | module load pgi/18.10 22 | } 23 | 24 | prepend-path PATH $libdir/bin 25 | prepend-path LD_LIBRARY_PATH $libdir/lib 26 | prepend-path MANPATH $libdir/share/man 27 | 28 | conflict mpi 29 | -------------------------------------------------------------------------------- /intel_parallel_studio/ipp_2019.1.144: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel IPP modulefile 4 | ## 5 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/ipp/bin/ippvars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel IPP (Integrated Performance Primitives) v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel IPP (Integrated Performance Primitives) v2019.1.144" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.144 16 | set root /opt/intel/compilers_and_libraries_${version}/linux 17 | set ipp $root/ipp 18 | 19 | setenv IPPROOT $ipp 20 | 21 | prepend-path CPATH $ipp/include 22 | prepend-path LD_LIBRARY_PATH $ipp/lib/intel64 23 | prepend-path LIBRARY_PATH $ipp/lib/intel64 24 | -------------------------------------------------------------------------------- /mpi/openmpi_2.1.2-pgi-llvm_18.10: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel MPI modulefile 4 | ## 5 | # /opt/pgi/modulefiles/openmpi/2.1.2/2018 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Open MPI v$version," 10 | puts stderr "\tbuilt with PGI v18.10 with LLVM\n" 11 | } 12 | 13 | module-whatis "sets up environment for Open MPI v2.1.2 with PGI LLVMv18.10" 14 | 15 | # for Tcl script use only 16 | set version 2.1.2 17 | set target linux86-64-llvm 18 | set libdir /opt/pgi/$target/2018/mpi/openmpi-$version 19 | 20 | if ![ is-loaded pgi/llvm_18.10 ] { 21 | module load pgi/llvm_18.10 22 | } 23 | 24 | prepend-path PATH $libdir/bin 25 | prepend-path LD_LIBRARY_PATH $libdir/lib 26 | prepend-path MANPATH $libdir/share/man 27 | 28 | conflict mpi 29 | -------------------------------------------------------------------------------- /intel_parallel_studio/pstl_2019.1.144: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## pstl modulefile 4 | ## 5 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/pstl/bin/pstlvars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel Parallel STL $version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel Parallel STL 2019.1.144" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.144 16 | set root /opt/intel/compilers_and_libraries_${version}/linux 17 | set pstl $root/pstl 18 | set tbb $root/tbb 19 | 20 | setenv PSTLROOT $pstl 21 | setenv TBBROOT $tbb 22 | 23 | prepend-path CPATH $pstl/include:$tbb/include 24 | prepend-path LD_LIBRARY_PATH $tbb/lib/intel64/gcc4.7 25 | prepend-path LIBRARY_PATH $tbb/lib/intel64/gcc4.7 26 | -------------------------------------------------------------------------------- /pgi/18.10: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## PGI modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for PGI Compilers v$version\n" 9 | } 10 | 11 | module-whatis "sets up environment for PGI Compilers v18.10" 12 | 13 | # for Tcl script use only 14 | set version 18.10 15 | set target linux86-64 16 | set pgihome /opt/pgi 17 | set pgidir $pgihome/$target/$version 18 | 19 | setenv PGI $pgihome 20 | setenv CC $pgidir/bin/pgcc 21 | setenv FC $pgidir/bin/pgfortran 22 | setenv F90 $pgidir/bin/pgf90 23 | setenv F77 $pgidir/bin/pgf77 24 | setenv CPP "$pgidir/bin/pgcc -Mcpp" 25 | setenv CXX $pgidir/bin/pgc++ 26 | 27 | prepend-path PATH $pgidir/bin 28 | prepend-path MANPATH $pgidir/man 29 | prepend-path LD_LIBRARY_PATH $pgidir/lib 30 | 31 | conflict pgi 32 | -------------------------------------------------------------------------------- /PrgEnv-pgi/18.10: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## PrgEnv-pgi modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up PGI Programming Environment v$version\n" 9 | } 10 | 11 | module-whatis "sets up PGI Programming Environment v18.10" 12 | 13 | # for Tcl script use only 14 | set version 18.10 15 | set modlist \ 16 | [ list pgi/18.10 \ 17 | mpi/openmpi_2.1.2-pgi_18.10 ] 18 | 19 | if { [ module-info mode load ] || [ module-info mode switch2 ] } { 20 | foreach mod $modlist { 21 | module load $mod 22 | } 23 | } 24 | 25 | if { [ module-info mode remove ] || [ module-info mode switch1 ] } { 26 | foreach mod $modlist { 27 | module rm $mod 28 | } 29 | } 30 | 31 | conflict PrgEnv 32 | conflict PrgEnv-intel 33 | conflict PrgEnv-pgi 34 | conflict PrgEnv-gcc 35 | -------------------------------------------------------------------------------- /PrgEnv-pgi/llvm_18.10: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## PrgEnv-pgi modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up PGI Programming Environment with LLVM v$version\n" 9 | } 10 | 11 | module-whatis "sets up PGI Programming Environment with LLVM v18.10" 12 | 13 | # for Tcl script use only 14 | set version 18.10 15 | set modlist \ 16 | [ list pgi/llvm_18.10 \ 17 | mpi/openmpi_2.1.2-pgi-llvm_18.10 ] 18 | 19 | if { [ module-info mode load ] || [ module-info mode switch2 ] } { 20 | foreach mod $modlist { 21 | module load $mod 22 | } 23 | } 24 | 25 | if { [ module-info mode remove ] || [ module-info mode switch1 ] } { 26 | foreach mod $modlist { 27 | module rm $mod 28 | } 29 | } 30 | 31 | conflict PrgEnv 32 | conflict PrgEnv-intel 33 | conflict PrgEnv-pgi 34 | conflict PrgEnv-gcc 35 | -------------------------------------------------------------------------------- /intel_parallel_studio/debugger_2019: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel Debugger modulefile 4 | ## 5 | # /opt/intel/debugger_2019/bin/debuggervars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel Debugger v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel Debugger v2019" 13 | 14 | # for Tcl script use only 15 | set version 2019 16 | set debugger /opt/intel/debugger_${version} 17 | set doc /opt/intel/documentation_${version}/en 18 | 19 | setenv INTEL_PYTHONHOME $debugger/python/intel64 20 | 21 | prepend-path PATH $debugger/gdb/intel64/bin 22 | prepend-path LD_LIBRARY_PATH $debugger/libipt/intel64/lib 23 | prepend-path INFOPATH $doc/debugger/gdb-ia/info 24 | prepend-path MANPATH $doc/debugger/gdb-ia/man 25 | prepend-path NLSPATH $debugger/gdb/intel64/share/locale/%l_%t/%N 26 | -------------------------------------------------------------------------------- /gcc/7.3.1: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## GCC modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for GCC v$version," 9 | puts stderr "\tprovided by SCL devtoolset-7\n" 10 | } 11 | 12 | module-whatis "sets up environment for GCC v7.3.1" 13 | 14 | # for Tcl script use only 15 | set version 7.3.1 16 | set root /opt/rh/devtoolset-7/root 17 | 18 | prepend-path INFOPATH $root/usr/share/info 19 | prepend-path LD_LIBRARY_PATH $root/usr/lib64:$root/usr/lib:$root/usr/lib64/dyninst:$root/usr/lib/dyninst 20 | prepend-path MANPATH $root/usr/share/man 21 | prepend-path PATH $root/usr/bin 22 | prepend-path PYTHONPATH $root/usr/lib64/python2.7/site-packages:$root/usr/lib/python2.7/site-packages 23 | setenv PCP_DIR $root 24 | setenv PERL5LIB $root/usr/lib64/perl5/vendor_perl:$root/usr/lib/perl5:$root/usr/share/perl5/vendor_perl 25 | 26 | conflict gcc 27 | -------------------------------------------------------------------------------- /pgi/llvm_18.10: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## PGI modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for PGI Compilers v$version," 9 | puts stderr "\twith LLVM code generator and OpenMP runtime\n" 10 | } 11 | 12 | module-whatis "sets up environment for PGI Compilers v18.10 with LLVM" 13 | 14 | # for Tcl script use only 15 | set version 18.10 16 | set target linux86-64-llvm 17 | set pgihome /opt/pgi 18 | set pgidir $pgihome/$target/$version 19 | 20 | setenv PGI $pgihome 21 | setenv CC $pgidir/bin/pgcc 22 | setenv FC $pgidir/bin/pgfortran 23 | setenv F90 $pgidir/bin/pgf90 24 | setenv F77 $pgidir/bin/pgf77 25 | setenv CPP "$pgidir/bin/pgcc -Mcpp" 26 | setenv CXX $pgidir/bin/pgc++ 27 | 28 | prepend-path PATH $pgidir/bin 29 | prepend-path MANPATH $pgidir/man 30 | prepend-path LD_LIBRARY_PATH $pgidir/lib 31 | 32 | conflict pgi 33 | -------------------------------------------------------------------------------- /intel_parallel_studio/daal_2019.1.144: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel DAAL modulefile 4 | ## 5 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/daal/bin/daalvars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel DAAL (Data Analytics Acceleration Library) v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel DAAL (Data Analytics Acceleration Library) v2019.1.144" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.144 16 | set root /opt/intel/compilers_and_libraries_${version}/linux 17 | set daal $root/daal 18 | set tbb $root/tbb 19 | 20 | setenv DAALROOT $daal 21 | 22 | prepend-path CLASSPATH $daal/lib/daal.jar 23 | prepend-path CPATH $daal/include 24 | prepend-path LD_LIBRARY_PATH $daal/lib/intel64_lin:$tbb/lib/intel64_lin/gcc4.4 25 | prepend-path LIBRARY_PATH $daal/lib/intel64_lin:$tbb/lib/intel64_lin/gcc4.4 26 | -------------------------------------------------------------------------------- /intel_fpga/17.1: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## intel_fpga modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for Intel FPGA development software v$version\n" 9 | } 10 | 11 | module-whatis "sets up environment for Intel FPGA development software v17.1" 12 | 13 | # for Tcl script use only 14 | set version 17.1 15 | set root /opt/intelFPGA_pro/${version} 16 | set board $root/hld/board/de5a_net_ddr4 17 | 18 | setenv QUARTUS_ROOTDIR $root/quartus 19 | setenv INTELFPGAOCLSDKROOT $root/hld 20 | setenv AOCL_BOARD_PACKAGE_ROOT $board 21 | setenv QUARTUS_64BIT 1 22 | setenv LM_LICENSE_FILE $root/intelFPGA_pro/licenses/1-NN929P_License.dat 23 | 24 | append-path PATH $root/quartus/bin:$root/hld/linux64/bin:$root/hld/bin:$root/hld/host/linux64/bin:$root/qsys/bin 25 | append-path LD_LIBRARY_PATH $board/linux64/lib:$root/hld/host/linux64/lib:$board/tests/extlibs/lib 26 | 27 | conflict intel_fpga 28 | -------------------------------------------------------------------------------- /intel_fpga/18.1: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## intel_fpga modulefile 4 | ## 5 | proc ModulesHelp { } { 6 | global version 7 | 8 | puts stderr "\tSets up environment for Intel FPGA development software $version\n" 9 | } 10 | 11 | module-whatis "sets up environment for Intel FPGA development software 18.1" 12 | 13 | # for Tcl script use only 14 | set version 18.1 15 | set root /opt/intelFPGA_pro/${version} 16 | set board $root/hld/board/de5a_net_ddr4 17 | 18 | setenv QUARTUS_ROOTDIR $root/quartus 19 | setenv INTELFPGAOCLSDKROOT $root/hld 20 | setenv AOCL_BOARD_PACKAGE_ROOT $board 21 | setenv QUARTUS_64BIT 1 22 | setenv LM_LICENSE_FILE $root/intelFPGA_pro/licenses/1-NN929P_License.dat 23 | 24 | append-path PATH $root/quartus/bin:$root/hld/linux64/bin:$root/hld/bin:$root/hld/host/linux64/bin:$root/qsys/bin 25 | append-path LD_LIBRARY_PATH $board/linux64/lib:$root/hld/host/linux64/lib:$board/tests/extlibs/lib 26 | 27 | conflict intel_fpga 28 | -------------------------------------------------------------------------------- /intel_parallel_studio/itac_2019.1.022: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel Trace Analyzer and Collector modulefile 4 | ## 5 | # /opt/intel/itac/2019.1.022/bin/itacvars.sh intel64 6 | # /opt/intel/itac/2019.1.022/intel64/modulefiles/itac 7 | proc ModulesHelp { } { 8 | global version 9 | 10 | puts stderr "\tSets up environment for Intel Trace Analyzer and Collector v$version\n" 11 | } 12 | 13 | module-whatis "sets up environment for Intel Trace Analyzer and Collector v2019.1.022" 14 | 15 | # for Tcl script use only 16 | set version 2019.1.022 17 | set root /opt/intel/itac/${version} 18 | 19 | setenv VT_ADD_LIBS "-ldwarf -lelf -lvtunwind -lnsl -lm -ldl -lpthread" 20 | setenv VT_ARCH intel64 21 | setenv VT_LIB_DIR $root/intel64/lib 22 | setenv VT_MPI impi4 23 | setenv VT_ROOT $root 24 | setenv VT_SLIB_DIR $root/intel64/slib 25 | 26 | prepend-path PATH $root/intel64/bin 27 | prepend-path LD_LIBRARY_PATH $root/intel64/slib 28 | prepend-path MANPATH $root/man 29 | -------------------------------------------------------------------------------- /intel_parallel_studio/mkl_2019.1.144: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## MKL modulefile 4 | ## 5 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/mkl/bin/mklvars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel MKL (Math Kernel Library) v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel MKL (Math Kernel Library) v2019.1.144" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.144 16 | set root /opt/intel/compilers_and_libraries_${version}/linux 17 | set mkl $root/mkl 18 | set tbb $root/tbb 19 | 20 | setenv MKLROOT $mkl 21 | 22 | prepend-path CPATH $mkl/include 23 | prepend-path LD_LIBRARY_PATH $tbb/lib/intel64_lin/gcc4.7:$root/compiler/lib/intel64_lin:$mkl/lib/intel64_lin 24 | prepend-path LIBRARY_PATH $tbb/lib/intel64_lin/gcc4.7:$root/compiler/lib/intel64_lin:$mkl/lib/intel64_lin 25 | prepend-path NLSPATH $mkl/lib/intel64_lin/locale/%l_%t/%N 26 | prepend-path PKG_CONFIG_PATH $mkl/bin/pkgconfig 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Shawfeng Dong 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /intel_parallel_studio/mpi_2019.1.144: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel MPI modulefile 4 | ## 5 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/mpi/intel64/bin/mpivars.sh intel64 6 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/mpi/intel64/modulefiles/mpi 7 | proc ModulesHelp { } { 8 | global version 9 | 10 | puts stderr "\tSets up environment for Intel MPI v$version\n" 11 | } 12 | 13 | module-whatis "sets up environment for Intel MPI v2019.1.144" 14 | 15 | # for Tcl script use only 16 | set version 2019.1.144 17 | set root /opt/intel/compilers_and_libraries_${version}/linux 18 | set mpi $root/mpi 19 | 20 | setenv I_MPI_ROOT $mpi 21 | 22 | prepend-path PATH $mpi/intel64/libfabric/bin:$mpi/intel64/bin 23 | prepend-path LD_LIBRARY_PATH $mpi/intel64/libfabric/lib:$mpi/intel64/lib/release:$mpi/intel64/lib 24 | prepend-path LIBRARY_PATH $mpi/intel64/libfabric/lib 25 | prepend-path CLASSPATH $mpi/intel64/lib/mpi.jar 26 | prepend-path FI_PROVIDER_PATH $mpi/intel64/libfabric/lib/prov 27 | prepend-path MANPATH $mpi/man 28 | 29 | conflict mpi 30 | -------------------------------------------------------------------------------- /intel_parallel_studio/parallel_studio_xe_2019.1.053: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel Parallel Studio XE modulefile 4 | ## 5 | # /opt/intel/parallel_studio_xe_2019.1.053/psxevars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel Parallel Studio XE v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel Parallel Studio XE v2019.1.144" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.053 16 | set modlist \ 17 | [ list intel/2019.1.144 \ 18 | mpi/intel_mpi_2019.1.144 \ 19 | intel_parallel_studio/clck_2019.0 \ 20 | intel_parallel_studio/itac_2019.1.022 \ 21 | intel_parallel_studio/inspector_2019.1.0.579146 \ 22 | intel_parallel_studio/vtune_amplifier_2019.1.0.579888 \ 23 | intel_parallel_studio/advisor_2019.1.0.579143 \ 24 | intel_parallel_studio/intelpython3 ] 25 | 26 | if { [ module-info mode load ] || [ module-info mode switch2 ] } { 27 | foreach mod $modlist { 28 | module load $mod 29 | } 30 | } 31 | 32 | if { [ module-info mode remove ] || [ module-info mode switch1 ] } { 33 | foreach mod $modlist { 34 | module rm $mod 35 | } 36 | } 37 | 38 | conflict PrgEnv 39 | conflict PrgEnv-intel 40 | conflict PrgEnv-pgi 41 | conflict PrgEnv-gcc 42 | -------------------------------------------------------------------------------- /intel_parallel_studio/compilers_2019.1.144: -------------------------------------------------------------------------------- 1 | #%Module1.0##################################################################### 2 | ## 3 | ## Intel Compilers modulefile 4 | ## 5 | # /opt/intel/compilers_and_libraries_2019.1.144/linux/bin/compilervars.sh intel64 6 | proc ModulesHelp { } { 7 | global version 8 | 9 | puts stderr "\tSets up environment for Intel Compilers and Libraries v$version\n" 10 | } 11 | 12 | module-whatis "sets up environment for Intel Compilers and Libraries v2019.1.144" 13 | 14 | # for Tcl script use only 15 | set version 2019.1.144 16 | set root /opt/intel/compilers_and_libraries_${version}/linux 17 | set doc /opt/intel/documentation_${version}/en 18 | set debugger /opt/intel/debugger_${version} 19 | set daal $root/daal 20 | set tbb $root/tbb 21 | set pstl $root/pstl 22 | set mkl $root/mkl 23 | set ipp $root/ipp 24 | 25 | setenv DAALROOT $daal 26 | setenv TBBROOT $tbb 27 | setenv PSTLROOT $pstl 28 | setenv MKLROOT $mkl 29 | setenv IPPROOT $ipp 30 | setenv INTEL_PYTHONHOME $debugger/python/intel64 31 | setenv INTEL_LICENSE_FILE /opt/intel/licenses 32 | 33 | prepend-path PATH $root/bin/intel64:$debugger/gdb/intel64/bin 34 | prepend-path LD_LIBRARY_PATH $root/compiler/lib/intel64_lin:$daal/lib/intel64_lin:$tbb/lib/intel64_lin/gcc4.7:$tbb/lib/intel64_lin/gcc4.4:$mkl/lib/intel64_lin:$ipp/lib/intel64:$debugger/libipt/intel64/lib 35 | prepend-path LIBRARY_PATH $root/compiler/lib/intel64_lin:$daal/lib/intel64_lin:$tbb/lib/intel64_lin/gcc4.7:$tbb/lib/intel64_lin/gcc4.4:$mkl/lib/intel64_lin:$ipp/lib/intel64 36 | prepend-path CPATH $daal/include:$tbb/include:$pstl/include:$mkl/include:$ipp/include 37 | prepend-path CLASSPATH $daal/lib/daal.jar 38 | prepend-path INFOPATH $doc/debugger/gdb-ia/info 39 | prepend-path MANPATH /opt/intel/man/common:$doc/debugger/gdb-ia/man 40 | prepend-path NLSPATH $root/compiler/lib/intel64/locale/%l_%t/%N:$mkl/lib/intel64_lin/locale/%l_%t/%N:$debugger/gdb/intel64/share/locale/%l_%t/%N 41 | prepend-path PKG_CONFIG_PATH $mkl/bin/pkgconfig 42 | 43 | conflict intel 44 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sample modulefiles for Environment Modules 2 | 3 | On RHEL/CentOS 7, the [Environment Modules](http://modules.sourceforge.net/) 4 | utility is provided by the *environment-modules* package. The package also 5 | provides 2 useful tools at `/usr/share/Modules/bin` that facilitate the 6 | conversion of an init shell script into a modulefile: 7 | 8 | * createmodule.sh 9 | * createmodule.py 10 | 11 | I usually create symbolic links to those tools at `/usr/local/bin`: 12 | 13 | ```console 14 | # cd /usr/local/bin 15 | # ln -s /usr/share/Modules/bin/createmodule.sh 16 | # ln -s /usr/share/Modules/bin/createmodule.py 17 | ``` 18 | 19 | ## Converting Software Collection scriptlets into Environment Modules 20 | 21 | We can use the tools to convert a [Software Collection](https://www.softwarecollections.org/en/)'s *enable* scriptlet into a modulefile. For example, 22 | to convert devtoolset-7's *enable* scriptlet into a modulefile: 23 | 24 | ```console 25 | $ createmodule.sh /opt/rh/devtoolset-7/enable 26 | #%Module 1.0 27 | prepend-path INFOPATH /opt/rh/devtoolset-7/root/usr/share/info 28 | prepend-path LD_LIBRARY_PATH /opt/rh/devtoolset-7/root/usr/lib64:/opt/rh/devtoolset-7/root/usr/lib:/opt/rh/devtoolset-7/root/usr/lib64/dyninst:/opt/rh/devtoolset-7/root/usr/lib/dyninst:/opt/rh/devtoolset-7/root/usr/lib64:/opt/rh/devtoolset-7/root/usr/lib 29 | prepend-path MANPATH /opt/rh/devtoolset-7/root/usr/share/man 30 | prepend-path PATH /opt/rh/devtoolset-7/root/usr/bin 31 | prepend-path PERL5LIB /opt/rh/devtoolset-7/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-7/root/usr/lib/perl5:/opt/rh/devtoolset-7/root//usr/share/perl5/vendor_perl 32 | prepend-path PYTHONPATH /opt/rh/devtoolset-7/root/usr/lib64/python2.7/site-packages:/opt/rh/devtoolset-7/root/usr/lib/python2.7/site-packages 33 | setenv PCP_DIR /opt/rh/devtoolset-7/root 34 | ``` 35 | 36 | I would then further edit the produced modulefile, by adding help and 37 | versioning, and turn it into something like [gcc/7.3.1](gcc/7.3.1). 38 | 39 | ## Converting Intel Parallel Studio XE init scripts into Environment Modules 40 | 41 | We can also use the same tools to convert Intel Parallel Studio XE init 42 | scripts into modulefiles. For example: 43 | 44 | ```console 45 | $ createmodule.sh /opt/intel/vtune_amplifier_2019.1.0.579888/amplxe-vars.sh intel64 46 | Copyright (C) 2009-2018 Intel Corporation. All rights reserved. 47 | Intel(R) VTune(TM) Amplifier 2019 (build 579888) 48 | #%Module 1.0 49 | prepend-path PATH /opt/intel/vtune_amplifier_2019.1.0.579888/bin64 50 | prepend-path PKG_CONFIG_PATH /opt/intel/vtune_amplifier_2019.1.0.579888/include/pkgconfig/lib64: 51 | setenv VTUNE_AMPLIFIER_2019_DIR /opt/intel/vtune_amplifier_2019.1.0.579888 52 | ``` 53 | 54 | Again, I would further edit the produced modulefiles to make them more 55 | readable; and organize the modulefiles in a more logical way. 56 | 57 | ## References 58 | 59 | On RHEL/CentOS 7, the *environment-modules* package provides the *compatibility version* (version 3.2) of the *Environment Modules* utility. The *compatibility version* is implemented in C. A full rewrite of the *Modules* utility in TCL was started in 2012 and has reached maturity. The latest TCL version of *Modules* is 4.2. 60 | 61 | * [NERSC - Modules Software Environment](https://www.nersc.gov/users/software/user-environment/modules/) 62 | * [MODULE manual page (C version)](http://modules.sourceforge.net/man/module.html) 63 | * [MODULEFILE manual page (C version)](http://modules.sourceforge.net/man/modulefile.html) 64 | * [Differences between versions 3.2 and 4](https://modules.readthedocs.io/en/stable/diff_v3_v4.html) 65 | * [Environment Modules documentation portal](https://modules.readthedocs.io/en/stable/index.html) 66 | --------------------------------------------------------------------------------