Hello,
I would like to mark modules as default and testing so that they show up like this:
$ module av mpi/openmpi
mpi/openmpi/1.6.5(default)
mpi/openmpi/1.7.2(testing)
and can be lauded via e.g.
$ module load mpi/openmpi/testing
I tried to use module-version in .modulerc to achieve this behaviour with the commands
module-version openmpi openmpi/1.6.5
module-version openmpi openmpi/1.7.2
but I get a warnig "Duplicate version symbol 'testing' found".
For the default version there is no such warning.
So it seems to me, that there is a problem/bug in module-version.
Best regards
Christoph Niethammer
PS: My current workaround for this problem is to use a variable in all the .modulrc files.
#%Module1.0
# File: $MODULEPATH/mpi/openmpi/.modulerc
set DEFAULT 1.6.5
module-version openmpi openmpi/$DEFAULT
# circumvent problem with duplicate definition of symbol testing
# The used variable name has to be unique to prevent conflicts if
# this workaround is used in multiple .modulerc files.
if { ![info exists MPI_OPENMPI_TESTING] } {
set MPI_OPENMPI_TESTING 1.7.2
module-version mpi/openmpi/$MPI_OPENMPI_TESTING testing
}
|