|
From: Jeff S. <jsq...@la...> - 2004-04-09 21:27:15
|
On Thu, 8 Apr 2004, John Lau wrote:
> I would like to ask, can switcher solve the ordering problem of modules
> with "prereq"?
>
> For example, I have 2 mpi implementations so I have 2 modules (lam and
> mpich). And I have two BLACS librarys that using with 2 different mpi
> (blacs-lam and blacs-mpich). So in the blacs-lam module, it prereq lam
> module. It works fine for module load.
>
> But it is not work in using with switcher because switcher always load
> blacs module first. I try to change the listing order in switcher.ini
> but it still dont work. I guess it is following the alphabetical order
> to load the modules.
>
> Do anyone have a solution to this problem? And can we change the
> switcher module loading order?
Ah -- this is a good point; I hadn't thought about this case. :-\
IIRC, the switcher code is currently issuing individual "module load"
commands to load up your default set. If that's true, I think that
consolidating them into a single "module load a b c d ..." line might
allow "module" to do the Right Thing.
Can you confirm if this is true?
Can you try "module load lam blacs-lam" and "module load blacs-lam lam"
and see if "module" re-orders them properly?
--
{+} Jeff Squyres
{+} jsq...@la...
{+} http://www.lam-mpi.org/
|