Debian Codegraph @

doc/example/compiler-etc-dependencies/modulepath/Compiler/intel/2018/intelmpi/common

raw
1 # Common stuff for intelmpi
2 # For "modulepath based" strategy
3 #
4 # This is largely a placeholder modulefile
5 # But does change modulepath
6 #
7 # Expects the following Tcl variables to have been previously defined:
8 # version: defaults to 'default'
9 # compilerTag:
10
11 if ![info exists version] { set version default }
12
13 proc ModulesHelp { } {
14 global version compilerTag
15 puts stderr "
16 This is a dummy modulefile to indicate that you wish to use the
17 Intel MPI libraries that shipped with the Intel compiler suite
18 you are using.
19
20 Version: $version
21 Compiler: $compilerTag
22
23 "
24 }
25
26 module-whatis "Use intelmpi with intel compiler $version ($compilerTag)"
27
28 # Even in production, this modulefile would not do anything
29 conflict intelmpi
30 prereq intel
31
32 # Add the proper modulepath
33 # In production this should be hard-coded, but using $gitroot for cookbook
34 set gitroot $::env(MOD_GIT_ROOTDIR)
35 set modpathroot $gitroot/doc/example/compiler-etc-dependencies/modulepath
36 set newmodpath $modpathroot/CompilerMPI/$compilerTag/intelmpi/$version
37 module use $newmodpath