| 1 |
# Example modulefiles for compiler-etc-dependency cookbook |
| 2 |
# For "modulepath based" strategyy |
| 3 |
# |
| 4 |
# Common stuff for intel |
| 5 |
# |
| 6 |
# Expects version to have been previously set |
| 7 |
|
| 8 |
proc ModulesHelp { } { |
| 9 |
global version |
| 10 |
|
| 11 |
puts stderr " |
| 12 |
This is the dummy Intel compiler suite modulefile for the cookbook |
| 13 |
Handling Compiler and other Package Dependencies |
| 14 |
|
| 15 |
It does not actually do anything |
| 16 |
|
| 17 |
intel version: $version |
| 18 |
|
| 19 |
" |
| 20 |
} |
| 21 |
|
| 22 |
module-whatis "Dummy Intel $version for cookbook" |
| 23 |
|
| 24 |
# Find the software root. In production, you should |
| 25 |
# hardcode to your real software root |
| 26 |
set gitroot $::env(MOD_GIT_ROOTDIR) |
| 27 |
set swroot $gitroot/doc/example/compiler-etc-dependencies/dummy-sw-root |
| 28 |
|
| 29 |
set pkgroot $swroot/intel |
| 30 |
set vroot $pkgroot/$version |
| 31 |
set bindir $vroot/bin |
| 32 |
|
| 33 |
prepend-path PATH $bindir |
| 34 |
|
| 35 |
# don't load multiple versions of this module (or other compilers) |
| 36 |
conflict gcc |
| 37 |
conflict gnu |
| 38 |
conflict pgi |
| 39 |
conflict intel |
| 40 |
|
| 41 |
# Add the proper modulepath |
| 42 |
# In production this should be hard-coded, but using $gitroot for cookbook |
| 43 |
set modpathroot $gitroot/doc/example/compiler-etc-dependencies/modulepath |
| 44 |
set newmodpath $modpathroot/Compiler/intel/$version |
| 45 |
module use $newmodpath |