-
Notifications
You must be signed in to change notification settings - Fork 371
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
Standalone MPAS-Ocean builds broken #5598
Comments
Here's what I'm loading on Chrysalis to build from the current
|
@hyungyukang, can you have a look at this? |
@xylar dspmv is a LAPACK function so this would need to be built with LAPACK. We probably need to add either our own reference version to use if LAPACK isn't linked or make sure there's a guard around this when LAPACK isn't linked (and an error if SI is turned on without building with LAPACK) |
@xylar -- we can revert that PR today if necessary and give the developers some time to come up with a solution |
@xylar , I will look into the error. As @philipwjones mentioned, the error comes from compiling the standalone MPAS-O without LAPACK but trying to use the SI solver. Before having this error, did you define LAPACK directory in your shell ENV and add When you turn on I actually didn't change anything on LAPACK-related functions in #5583. DSPMV has been always there since the semi-implicit added to MPAS-O. Please make sure your configurations and let me know. BTW, I don't have account on Chicoma, but Can I have my account? |
@philipwjones and @hyungyukang, first, I have not got as far as running the model since it doesn't build. So I have not selected a particular solver but I will not be running with split-implicit, as so far none of our compass tests cases use it. We typically build standalone MPAS-Ocean without LAPACK. This is the default mode, so it needs to work but it is currently broken. I realize I could build with LAPACK but this is not really a solution for us because we have been able to run without it up to now (or at least we should have been given some warning that it was going to be a requirement so we could make it part of our build process). |
Sorry, I mistyped. This was on Chrysalis. (You don't want an account on Chicoma, trust me.) |
I'm sure nothing was intentionally changed related to DSPMV in #5583 but I can see that there are code changes that involve that function. It seems likely to me that something in #5583 must have taken what was an optional call to |
@jonbob, if a fix can be found and merged soon, that would be better. @philipwjones and @hyungyukang, what do you think? |
A bit more detail. After #5583, we have: E3SM/components/mpas-ocean/src/mode_forward/mpas_ocn_time_integration_si.F Lines 4328 to 4335 in a6b2f55
This is in a block that gets called if we haven't defined USE_MAGMA or USE_CUBLAS , which is currently going to be true in standalone for the vast majority of testing we do.
Before #5583, the DSPMV were wrapped in E3SM/components/mpas-ocean/src/mode_forward/mpas_ocn_time_integration_si.F Lines 3558 to 3571 in a3d082c
Which is why it worked well in standalone runs without LAPACK. |
@philipwjones, yes, that's my reading too. |
@xylar beat me to it - just discovered the same thing. We just need to add the ifdef USE_LAPACK around these calls again. Just a little more complicated because it's in an else clause for other solver packages. |
If you can come up with a fix quickly, I'd prefer to merge another PR |
@hyungyukang, thanks, I appreciate it! I agree with @jonbob, a PR to fix this would be much better than reverting. It isn't affecting most of our testing yet since we haven't update the E3SM-Project submodule in compass yet to bring in #5583. It's just when we try to test branches that have been rebased onto |
- The standalone MPAS-O build was broken due to a missing 'USE_LAPACK' directive in the SI solver code.
- The standalone MPAS-O build was broken due to a missing 'USE_LAPACK' directive in the SI solver code.
...presumably by #5583
When I try to build standalone MPAS-Ocean on Chrysalis with Intel, OpenMPI, and OpenMP (see below for details), I see:
This was not seen until recently (not in 0273cfa when #5343 was merged, the current location of the E3SM-Project submodule in compass).
The text was updated successfully, but these errors were encountered: