Hi - I have seen variants of this question asked, but haven't quite found what I'm looking for - so:
We have slurm 14.11.5 installed on a cluster with multiple versions of openmpi compiled, with versions > 1.8.4 (pmi2) support, and older versions (~1.6.5, w/o pmi2) For handling pmi2 launching with openmpi, we use module files, and upon loading, set the SLURM_MPI_TYPE variable to pmi2. Using salloc and srun will correctly launch processes through pmi2, presumably through correct propagation of the environment variable. Now I would like to accomplish the same thing in a batch script launched through sbatch. When I try this ala sbatch -N<###> -n<##> --export=ALL <script> <script> .... .... echo $SLURM_MPI_TYPE srun <some openmpi-compiled executable> I find that SLURM_MPI_TYPE, while defined in my launching environment, is undefined, and srun chokes on the 1-core launched / "borked" installation warning. I would like to utilize a batch script that can toggle between newer and older versions of openmpi, where pmi launching is detected by the appropriate enivornment variable, But haven't found a a way to get this to work. Should it? And if so, does anyone have a suggestion on how to do so? Thanks in advance! Peter ----------------------------------------------------------------------------- Peter Gordon ExxonMobil Research and Engineering Corporate Strategic Research 1545 Route 22 East Room LF372 Annandale, NJ 08801 phone: (908)-730-2546 fax: (908)-730-3344 -----------------------------------------------------------------------------
