-
Notifications
You must be signed in to change notification settings - Fork 383
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
Fix standalone MPAS builds under OSX #4395
Fix standalone MPAS builds under OSX #4395
Conversation
This PR needs to be rebased after #4362 gets merged. |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With #4362 and this merged on top, MPAS-Ocean stand alone compiles with gnu debug and optimized on grizzly and passes nightly regression suite (other than those caused by other issues).
These do not work with OpenMPI and do not seem to be necessary.
5277ea4
to
4e1a555
Compare
@mark-petersen, do you have an OSX machine you can test on? I don't really, just a MacInCloud for a few hours a day, which makes this tricky for me. It would be nice to have the ocean test suite tested on OSX, not just Grizzly. |
On my local laptop I successfully, on compass master:
then on this branch:
also tried |
@mark-petersen, you need to create the conda environment with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I compiled on my Mac and encountered no issues. These changes look appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested MPAS-Seaice and everything worked fine
Thanks very much @matthewhoffman and @akturner! |
@xylar it's compiling with |
@xylar, this is great. It almost works. So far these are successful:
where I've set
And it tries to run through the suite, but it fails all except the mesh generation. My problem seems to be MPI on my laptop. The simple version is this:
have you seen that one before? That is probably some local problem. You should go ahead and merge this PR anyway. |
@mark-petersen, the error message suggests to me that it might be a proxy issue. I'm not good at debugging issues with LANL proxy settings but @vanroekel may have some suggestions, since he has just been struggling with that on his new machine. |
I was able to test this with OSX in combination with MPAS-Dev/compass#171 and it worked fine for me. The Mac I was testing on didn't have 8 cores to work with, causing some decomposition tests to fail. Other tests passed. |
From a github issue pmodels/mpich#4710 (comment) I tried this:
and it worked. I don't know why this is a problem for me and not others, but it must be either the OS version (mine is old at 10.13) or some network setup. It was the same with VPN on or off. Regardless, please go ahead an merge this PR. It obviously works. Thanks for doing this, @xylar. |
…4395) Fix standalone MPAS builds under OSX This merge switches to the flag for including the standard c++ library (needed by SCORPIO) under OSX to -lc++, not -lstdc++. Note that these changes only impact MPAS standalone builds and should not affect E3SM. OSX is also the most common platform where we use gfortran and clang compilers. OpenMPI on OSX does not support flags -cc=clang and -cxx=clang++. These flags also do not seem to be needed. [BFB]
merged to next |
merged to master |
Awesome, thanks @jonbob! |
This merge switches to the flag for including the standard c++ library (needed by SCORPIO) under OSX to
-lc++
, not-lstdc++
.OSX is also the most common platform where we use
gfortran
andclang
compilers. OpenMPI on OSX does not support flags-cc=clang
and-cxx=clang++
. These flags also do not seem to be needed.[BFB]