-
Notifications
You must be signed in to change notification settings - Fork 37
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
Set OPENMP=true
in load script by default
#364
Conversation
26d3c18
to
c65d0f0
Compare
@matthewhoffman, could you let me know if it's okay for MALI to have |
@mark-petersen, are you okay with this solution? Or do you feel more comfortable with the current behavior in which users have to specify |
@sbrus89, please take a look if you can. |
TestingI made the build script once without
was in the load script. I then used the load script to build MPAS-Ocean and verified that it also showed |
@xylar I just tested this on badger with:
Without the
but if I then use a load script that was created with
This is the wrong logic, because one expects a flag like
I think this is a nice feature. Users can take advantage of it or set OPENMP themselves, as they prefer. |
Okay, I thought it was intuitive that this would not set In general, it is really hard to "deactivate" an compass load script. So it's not guaranteed to be safe to source one load script and then source another. (You will see some weird messages related to Spack if you source the same load script twice -- worth figuring out at some point.) |
c65d0f0
to
e205eda
Compare
@mark-petersen, could you see if the modified (and rebased) version works for you and is more intuitive? It created a sensible load script for me in a local test. That's all I had time to test so far. |
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.
Yes, I tested this and it works perfectly now. Thanks!
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 tested the MALI integration suite and this appears to have no effect. In my first test the integration suite took 3 minutes longer than usual after compiling with the OPENMP=true set by the compass env, but I think that was just machine variability, because I tried it a second time and it ran 2 minutes faster than usual. There is no reason to think including this flag would affect anything, because MALI has no OpenMP directives in the MPAS code at present.
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.
@xylar, this works as expected for me too.
Thanks everyone! I'll resolve the conflict and then merge. |
A developer can call `./conda/configure_compass_env.py` with `--no_openmp` to prevent this variable from being set.
e205eda
to
8f8a1e7
Compare
Rebased and "tested" in then sense of creating a load script with and without OPENMP. |
… (PR #4910) MPAS Standalone: Add OpenMP support to gnu-nersc For some reason this was omitted when OpenMP support was added 8 years ago. This has become a problem in compass because we switched to building with OpenMP on by default: MPAS-Dev/compass#364 Does not impact E3SM builds. [BFB]
MPAS Standalone: Add OpenMP support to gnu-nersc For some reason this was omitted when OpenMP support was added 8 years ago. This has become a problem in compass because we switched to building with OpenMP on by default: MPAS-Dev/compass#364 Does not impact E3SM builds. [BFB]
A developer can call
./conda/configure_compass_env.py
with--without_openmp
to prevent this variable from being set.closes #347