Debian Codegraph @

doc/example/compiler-etc-dependencies/flavours/mvapich/common

raw
1 # Common stuff for "mvapich" modulefiles
2 # Using "flavours" strategy
3 #
4 # Expects the following Tcl variables to have been previously set:
5 # version: version of mvapich compiler collection
6
7 # Initialise "flavours"
8 package require flavours
9 flavours init
10
11 proc ModulesHelp { } {
12 global version
13 puts stderr "
14 mvapich: Test dummy version of mvapich $version
15
16 For testing packages depending on compilers/MPI
17
18 "
19 }
20
21 module-whatis "Dummy mvapich $version"
22
23 # Construct flavour name
24 flavours prereq -class compiler
25 flavours conflict mvapich
26
27 # Declare the path where the packages are installed
28 # The reference to the environment variable is a hack
29 # for this example; normally one would hard code a path
30 set rootdir $::env(MOD_GIT_ROOTDIR)
31 set swroot $rootdir/doc/example/compiler-etc-dependencies/dummy-sw-root
32
33 flavours root $swroot/mvapich/$version
34 flavours revision 1
35 flavours commit
36
37 # Set environment variables
38 setenv MPI_DIR [flavours path]
39
40 # Prepend to environment variables (paths relative to
41 # the directory containing the flavour)
42 flavours prepend-path PATH bin
43 flavours prepend-path LIBRARY_PATH lib
44 flavours prepend-path LD_LIBRARY_PATH lib
45 flavours prepend-path CPATH include
46
47 # Reload any modules with this as a prerequisite
48 flavours cleanup