WISDEM icon indicating copy to clipboard operation
WISDEM copied to clipboard

Intel MPI build fails to import MPI

Open cfrontin opened this issue 10 months ago • 1 comments

Running with Intel MPI on NREL's Kestrel, MPI is set to None because none of the variable formats here are used by the Intel MPI build.

I have:

>>> for name in os.environ.keys():
...   if "MPI" in name:
...     print(name)
... 
I_MPI_PMI_LIBRARY
I_MPI_PMI
MPICC
INTEL_ONEAPI_COMPILERS_ROOT_DIR
INTEL_ONEAPI_MPI_ROOT_DIR
I_MPI_ROOT

so it's probably adequate to include I_MPI_ROOT to the list?

A current workaround is to create a dummy env variable (e.g. export MPICH_I_MPI_DUMMY=1) that satisfies the requirements, allowing mpi4py.MPI to get used correctly in an intel build.

cfrontin avatar Apr 03 '24 15:04 cfrontin

@cfrontin - Keep open or close?

gbarter avatar Apr 27 '24 11:04 gbarter

This change works locally for me- I defer to you on whether it should go into the repo or not?

cfrontin avatar Apr 29 '24 15:04 cfrontin

I do think some folks are running serial exclsusively on Kestrel because of this as of two weeks ago

cfrontin avatar Apr 29 '24 15:04 cfrontin

Should be resolved with this commit.

gbarter avatar Apr 29 '24 16:04 gbarter