Debian Codegraph @

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

raw
1 # Common stuff for "pgi" modulefiles
2 # Using "flavours" strategy
3 #
4 # Expects the following Tcl variables to have been previously set:
5 # version: version of pgi compiler collection
6
7 # Initialise "flavours"
8 package require flavours
9 flavours init
10
11 proc ModulesHelp { } {
12 global version
13
14 puts stderr "
15 This is the dummy PGI compiler suite modulefile for the cookbook
16 Handling Compiler and other Package Dependencies
17
18 It does not actually do anything
19
20 Version: $version
21
22 "
23 }
24
25 module-whatis "Dummy PGI $version for cookbook"
26
27 # Find the software root. In production, you should
28 # hardcode to your real software root
29 set gitroot $::env(MOD_GIT_ROOTDIR)
30 set swroot $gitroot/doc/example/compiler-etc-dependencies/dummy-sw-root
31 set pkgroot $swroot/pgi
32 set vroot $pkgroot/$version
33 set bindir $vroot/bin
34
35 prepend-path PATH $bindir
36
37 # don't load multiple versions of this module (or other compilers)
38 conflict gcc
39 conflict gnu
40 conflict pgi
41 conflict intel
42
43 # Reload any modules with this as a prerequisite
44 flavours cleanup