-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xESMF 8 possible without MPI? #102
Comments
Speaking from the ESMPy perspective: the ImportError that you reference is only raised if a user attempts to call Field.read() from an installation that was built without MPI. xESMF could easily supply this functionality using netCDF4, and forego the MPI requirement of ESMPy for this feature. There may be other xESMF dependencies on MPI though.. |
@rokuingh Well, the only mention of "mpi" in the xESMF repo is the on the installation page, so maybe there is a chance. Now, my reading of ESMPy is that that error is from |
Slight update. I was able to install xesmf 8 following #47 and Note the warnings were:
|
Also interesting: it looks like when xESMF does do a regridder, it only uses one core/process. ETA: though maybe that's because I removed |
Thanks for this! I can confirm that the addition of the |
And, of course, avoid ever putting the |
Regridded output now same dtype as input
All,
A question. I help manage a Python stack at a computing center and a user has requested xESMF. The problem is that xESMF wants to install MPI. If it doesn't, we get #47 where a lot of tests don't pass with:
My issue is this. I really do not like or want other
mpirun
, ormpifort
or other MPI executables and libraries in the Python stack because in the past this has led to issues in the past. E.g., people are having problems because thempirun
being used is not the one from the Intel MPI module that compiled their code but from the mpich3 python module!And, our modulefile, while limited for our python does have:
and in that is an
mpirun
. I know that careful loading can bury that inPATH
behind others, but a user will eventually load python after, say, Intel MPI and boom, wrongmpirun
.Is it possible to have a recent xESMF (v8+) that doesn't need mpi? Would it work if I deleted the
mpi*
files/scripts from thebin/
directory? I'd like to add this package, but in a safe way.I ask about "recent" xESMF because our model (GEOS) uses the cubed-sphere. In fact, it is our cubed-sphere grid in ESMF, thus ESMF 8 would be nice to have. (Note: we do install ESMF as part of our base libraries. Is there a way to point xesmf to that?)
The text was updated successfully, but these errors were encountered: