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