[Users] [External] Re: Running with SLURM

Roland Haas rhaas at illinois.edu
Thu Aug 11 08:32:42 CDT 2022


Hello Jessica,

If you get the same error from hello-world and from Cactus then it
would seem that there is still something off with the MPI stack.

The -lmpi_cxx option instructs the linker to link in C++ bindings for
MPI though for just the hello world example, it being C code, this is
not required and -lmpi alone is sufficient.

I would see two options that would let you get running somewhat quickly:

1. report your issues with OpenMPI and hello-world (including link to
the source code on the web, and the exact command line to compile) to
the admins and ask them for help

1.5 instead of using gcc to compile for OpenMPI do use the MPI official
compiler wrapper mpicc which would just be:

mpicc -o hello hello.c

that is you do not have to pass and library or inlcude options. If this
fails, I would definitely talk to the admins.

2. compile hello-world using mvapich. For this the easiest way is to
make sure to load the mvapich module and then use the same compiler
wrapper invication to compile:

mpicc -o hello hello.c

If 2 works then you can also compile the Einstein Toolkit with mvapich.
You have to make sure to load the correct module before compiling the
toolkit and then ExternalLibraries/MPI should figure out (from the
mpicc wrapper) how to compile the toolkit. 

Yours,
Roland


> Hi Roland,
> 
> Thank you so much.  The compute nodes are able to be used for
> compilation, and the directories match what is listed in
> make.MPI.defn.  When doing the 'hello' example you linked to, it was
> unable to compile due to a linker error (/usr/bin/ld: cannot find
> -lmpi_cxx).  I re-ran it in verbose mode and found the directory it
> was searching did exist and did have lmpi but not lmpi_cxx.  The
> admins said they had had some issues installing openmpi (couldn't
> recall exactly what), and recommended mpavich (since that does have
> lmpicxx installed and is their preferred implementation).  However,
> they reinstalled openmpi in an effort to get that to work and it did
> allow the 'hello' script to compile, but when executed it produced:
> 
> --------------------------------------------------------------------------
> No OpenFabrics connection schemes reported that they were able to be
> used on a specific port.  As such, the openib BTL (OpenFabrics
> support) will be disabled for this port.
> 
>   Local host:           h1
>   Local device:         mlx5_0
>   Local port:           1
>   CPCs attempted:       rdmacm, udcm
> --------------------------------------------------------------------------
> Hello world from processor h1.quartz.uits.iu.edu, rank 0 out of 1
> processors
> 
> Similarly, doing the TOV job via sbatch, after the srun command it
> gave the same OpenFabrics message (for each MPI rank) and then the
> same segmentation faults as before.  I've contacted the admins about
> this and am waiting to hear back.  Do you have any recommendations -
> perhaps it would be easier to try switching over to mvapich?  If so,
> could you point me to some resources on how to reconfigure?
> 
> Thank you,
> Jessica
> 
> Dr. Jessica S. Warren
> Physics Lecturer
> Indiana University Northwest
> warrenjs at iun.edu
> ________________________________
> From: Roland Haas <rhaas at illinois.edu>
> Sent: Tuesday, August 9, 2022 9:48 AM
> To: Warren, Jessica Sawyer <warrenjs at iun.edu>
> Cc: users at einsteintoolkit.org <users at einsteintoolkit.org>
> Subject: [External] Re: [Users] Running with SLURM
> 
> Hello Jessica,
> 
> You may also find something useful in the setting up a new machine
> seminar presentation:
> 
> https://urldefense.com/v3/__https://www.einsteintoolkit.org/seminars/2022_02_24/index.html__;!!DZ3fjg!9JAgxc4juluJwklwTQgJGsYLXJIzzdHOqX8rwuiuymRXLrFedDv4PXSatzu0HVAYDfBFpiYxw1_jUDmUew$ 
> 
> Yours,
> Roland
> 
> --
> My email is as private as my paper mail. I therefore support
> encrypting and signing email messages. Get my PGP key from
> https://urldefense.com/v3/__http://pgp.mit.edu__;!!DZ3fjg!9JAgxc4juluJwklwTQgJGsYLXJIzzdHOqX8rwuiuymRXLrFedDv4PXSatzu0HVAYDfBFpiYxw19et3mEyg$
>  .


-- 
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20220811/ff577bdc/attachment-0001.bin 


More information about the Users mailing list