the profile is easier to describe, under modulefiles, you will redefine
version and modroot for all different build pkg, e.g.:
$ ls mpich2/
1.1.1p1_gnu 1.1.1p1_intel 1.2.1p1_gnu 1.2.1p1_intel 1.3a1_gnu
1.3a1_intel
- mpich2 intel build:
$ cat mpich2/1.1.1p1_intel
#%Module1.0#####################################################################
##
## modules modulefile
##
## modulefiles/modules. Generated from modules.in by configure.
##
proc ModulesHelp { } {
global version modroot
puts stderr "\tmodules - loads the modules software &
application environment"
puts stderr "\n\tThis adds $modroot/* to several of the"
puts stderr "\tenvironment variables."
puts stderr "\n\tVersion $version\n"
}
module-whatis "loads the modules environment"
# for Tcl script use only
set version 1.1.1p1_intel
set modroot /opt/pkg/mpich2/mpich2-1.1.1p1.intel
setenv MODULESHOME $modroot
prepend-path PATH $modroot/bin
prepend-path MANPATH $modroot/man
prepend-path LD_LIBRARY_PATH $modroot/lib
BR,
J
--
Jason Shih
ASGC
Tel: +886-2-2789-8373
Fax: +886-2-2783-5434