Cool! That helps - I'll continue working on my abstraction and report back later on.
Cheers, Bernard > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Jeff Squyres > Sent: Wednesday, November 30, 2005 3:20 > To: OSCAR-devel List > Subject: Re: [Oscar-devel] Resource Manager Detection > (RM_Detect) Framework > > On Nov 30, 2005, at 12:06 AM, Bernard Li wrote: > > > Currently in LAM/MPI's pbs_script.lam, there's code to do > lamboot and > > lamhalt. However, for SGE, this is done outside of the > qsub script in > > the Parallel Environment therefore it is not necessary for > the user to > > set up/destroy their LAM/MPI world, he just need to specifiy the > > Parallel Environment to use and how many nodes he require. > > Is there a reason SGE does this? > > I somewhat discourage hiding lamboot/lamhalt because it makes running > LAM on some platforms "different." > > But there is an easy enough test -- run the "lamnodes" command at the > beginning of the script and see if it succeeds or fails > (IIRC, checking > the exit status will do). If it succeeds, that means that > lamboot has > already occurred. Something like this (typed off the top of > my head -- > pardon typos): > > ----- > need_lamhalt=0 > lamnodes > /dev/null 2>&1 > if test "$?" != 0; then > need_lamhalt=1 > lamboot > fi > # ...contents of test > if test "$need_lamhalt" = "1"; then > lamhalt > fi > ----- > > -- > {+} Jeff Squyres > {+} The Open MPI Project > {+} http://www.open-mpi.org/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. > DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick > _______________________________________________ > Oscar-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oscar-devel > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
