On 17 May 2010 12:52:45 -0700, Lindsay Todd wrote:
>
> Folks: I think maybe I'm missing something basic is trying to set a
> default version of a modules file.
>
> I am using the C version of Modules 3.2.7. I have several modules
> files for MPI, including mpi/openmpi-1.4-gcc41/3 and
> mpi/openmpi-1.4-gcc41/4. I would like the */3 version to be the
> default. So under mpi/openmpi-1.4-gcc41 I have a .modulerc file with
> these lines:
>
> #%Module -*- tcl -*-
> module-version mpi/openmpi-1.4-gcc41/3 default
Try using mpi/openmpi-1.4-gcc41/.version instead. Here's a simple
example:
#%Module1.0########## -*- mode:tcl -*- ############
set ModulesVersion mpi/openmpi-1.4-gcc41/3
-- Ted
>
> So if I do a "module avail" command, I see:
>
> ----------------- /gpfs/home/software/amd64-rhel5/modulefiles -----------------
> mpi/mvapich-1.2-gcc41/2 mpi/openmpi-1.4-gcc41/3(default)
> mpi/mvapich2-1.4-gcc41/5 mpi/openmpi-1.4-gcc41/4
>
> But if I do a "module load mpi/openmpi-1.4-gcc41", then list, I see:
>
>
> Currently Loaded Modulefiles:
> 1) mpi/openmpi-1.4-gcc41/4
>
>
> Interestingly if I "module purge" then "module load
> mpi/openmpi-1.4-gcc41/default" I end up with the same result.
>
> So my questions: (1) How could I create a modulerc file that makes the
> modulefile for build 3 be the default, while still leaving build 4
> available for testing? (2) Is there a way to specify a default module
> file that is relative to "mpi/openmpi-1.4-gcc41"? Naively I thought
> "module-version 3 default". But then "module avail" is broken,
> printing out that "Version symbol 'default' loops' several times.
>
> PS. Is there anyway to log module usage to syslog? I see the
> "module-log" command, but that seems to control where messages go that
> are created by, um, what?
>
> Thanks for the help!
>
> --
> R. Lindsay Todd, PhD email: to...@rp...
> Senior Systems Programmer phone: 518-276-2605
> Rensselaer Polytechnic Institute fax: 518-276-2809
> Troy, NY 12180-3590 WWW: http://www.rpi.edu/~toddr
>
> The views, opinions, and judgments expressed in this message are
> solely those of the author. The message contents have not been
> reviewed or approved by Rensselaer.
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
>
--
Frango ut patefaciam -- I break so that I may reveal
|