-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add scotch #550
Add scotch #550
Conversation
Revert to EMC spack-stack dev
@MatthewMasarik-NOAA and I actually don't have access to a test to confirm if we'd need this in the ufs-common modules but from earlier comments from @DeniseWorthen I believe this is indeed the case. |
@MatthewMasarik-NOAA is working to test the new modules with the WW3 standalone regression tests. @DeniseWorthen can test within the ufs-weather-model coupled framework. |
thanks for letting me know. it's simple enough for us to add/remove it from the ufs-wm spack/spack-stack configs, so we can play it by ear regarding ufs_common. |
Ok, I got the ubuntu CI build going again, and it passed. Will work on the mac CI test tonight and then this is hopefully ready to go. |
Hi @MatthewMasarik-NOAA. Apologies, but I have not had time to work on this recently. I will try to get back to it soon. |
@MatthewMasarik-NOAA i've added two variants to the build recipe (to build w/ |
Hi @ulmononian, thank you for providing this new scotch build. Yes, I'll test it and let you know the outcome. |
@AlexanderRichert-NOAA perhaps you can weigh in on this comment from a scotch developer regarding the gnu issue: "To my understanding, this is not an issue of gnu or intel compiler versions per se, but of which C standard version they are referring to when processing the source code files. Indeed, PRIu64 and its likes were inserted in C99 : https://en.cppreference.com/w/c/types/integer. Hence, in order to compile Scotch without errors, one has to make sure the compiler accepts the C99 standard,e.g., by using the " i loaded up the stack-intel on hera and did based on this, i'm not sure if this it is indeed a gnu issue causing the ww3 init failures on hera right now (cc @MatthewMasarik-NOAA ) |
My understanding is that the WW3 issues have to do with runtime issue related to the graph infrastructure, as opposed to SCOTCH buildtime issues. @MatthewMasarik-NOAA does that sound right. @ulmononian have you tested building SCOTCH with Intel? As far as I know all the intel versions we care about have c99 support so I don't think that should be an issue. |
@ulmononian @AlexanderRichert-NOAA, Alex is correct that the issues are seen during runtime, specifically during the model initialization where SCOTCH is called and the graph partitioning occurs. Since we had a work-around that did the trick (loading |
so the version i am building for @MatthewMasarik-NOAA to test is w/ intel. i was asking about the gnu c99 comment only in regard to the gnu 9.2 that is added to the intel modulefile paths. i wanted to make sure it had the appropriate settings. everything compiles "successfully", so that is not an issue. but the runtime ww3 init failure suggest to me something is poorly configured for the compilation. or the mpi init step in the model needs to be changed perhaps. |
@ulmononian, I haven't been successful getting all the modules loaded when I'm using this latest path. Here's what I'm doing on hera:
then
at this point when I do a
The next package we want to load for WW3 is
and
I also tried being more specific with the path specified in the
though for any of these attempts I also go the same output when i ran a 'module avail'. Can you see what might be going wrong here? |
Please follow the instructions in https://spack-stack.readthedocs.io/en/latest/PreConfiguredSites.html#noaa-rdhpcs-hera for loading the modules - let me know if this works. |
ah! right. Thank you @climbfuji |
please do this first (for intel):
then, based on the modules you were loading in your comment here, please do:
some of these versions differ from what you were loading, but they are the versions provided in spack-stack/1.3.0. obviously you do not need to load all of these if your module env has changed. please let me know if this works for you to at least get to the point where you can compile/start to run ww3. |
Perfect. Thank you, @ulmononian!! |
@MatthewMasarik-NOAA any luck with this new installation by chance? |
@ulmononian, I got pulled away from my attempts to test this yesterday. I just got it set up, and the tests have been going for 20mins now. I'll know the outcome ~2hrs. I'll report back shortly after |
@ulmononian, good news, all the tests went great! I loaded the modules you listed and WW3 built and ran fine (without even needing to set the SCOTCH_PATH env parameter). Thank you for re-doing the build! |
Great! Thanks so much for this update. I'll work with @ulmononian to get this and other PRs merged this afternoon |
Sure thing. Thank you! |
awesome! very glad this finally worked. i assume we should just go with the threading variants i added, so i will update that over at JCSDA/spack#260. thanks for testing @MatthewMasarik-NOAA. |
Yes, I agree we should go with the threading variants you added. thanks @ulmononian |
…eature/add_scotch
…eature/add_scotch
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.
scotch was tested successfully on Hera
WW3 requires the
scotch
package for mesh/graph partitioning (see spack-stack #465, #336).This simply adds
scotch
to thecommon/packages.yaml
and to the ufs-weather-model-static template (though I am not certain this needs to be done here). My understanding is that WW3 needsscotch
, but I am not sure if this will be added to the UFS common module set (perhaps @JessicaMeixner-NOAA or @MatthewMasarik-NOAA can comment on that?).Installs successfully as standalone package and as a part of ufs-weather-model-env (intel & gcc) on Orion.
For testing purposes,
scotch/7.0.3
has been installed in the Hera spack-stack/1.3.0 Unified Environment here:/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.3.0/envs/unified-env
.Depends on NOAA-EMC/spack/260.
Would close #465 and #336.
Note:
.gitmodules
pointer andspack
submodule will revert back to current spack-stack develop (only modified for testing).