|
From: John L. <cf...@cl...> - 2004-04-13 01:57:19
|
=A6b =A4=BB, 2004-04-10 11:01, env...@li...= ge.net =BCg=B9D=A1G > Message: 1 > Date: Fri, 9 Apr 2004 17:27:10 -0400 (EDT) > From: Jeff Squyres <jsq...@la...> > To: John Lau <cf...@cl...> > Cc: env...@li... > Subject: Re: [env-switcher-devel] Can switcher solve the ordering probl= em of > modules with "prereq"? >=20 > On Thu, 8 Apr 2004, John Lau wrote: >=20 > > I would like to ask, can switcher solve the ordering problem of modul= es > > with "prereq"? > > > > For example, I have 2 mpi implementations so I have 2 modules (lam an= d > > 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 la= m > > module. It works fine for module load. > > > > But it is not work in using with switcher because switcher always loa= d > > 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 orde= r > > to load the modules. > > > > Do anyone have a solution to this problem? And can we change the > > switcher module loading order? >=20 > Ah -- this is a good point; I hadn't thought about this case. :-\ >=20 > 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. >=20 > Can you confirm if this is true? >=20 > Can you try "module load lam blacs-lam" and "module load blacs-lam lam" > and see if "module" re-orders them properly? Oh, the module cannot reorder the load of modules... -_- "module add blacs/blacs-lam-1.1 mpi/lam-gcc32-7.0.3" cannot work while "module add mpi/lam-gcc32-7.0.3 blacs/blacs-lam-1.1" is ok! John Lau |