-
Notifications
You must be signed in to change notification settings - Fork 542
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 option to use shared scotch libs #1024
base: develop
Are you sure you want to change the base?
Conversation
This reverts commit 551e32f.
this was tested within the ufs-wm compilation stage using the spack-stack/1.4.0 scotch/7.0.3 installation (note this is a static set of scotch libraries). the option to set
i tested it 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.
@ulmononian has this been tested by anyone beyond the compilation stage? I've found it's possible for scotch and WW3 to build without error, but crash at runtime when it enters the scotch call. Please confirm the functionality works at runtime as well.
@MatthewMasarik-NOAA it has been tested in compilation and in ufs-wm rts. it does not change the outcome of the ufs-wm rt's where if someone on the ww3 team could test these changes in the internal ww3 tests, i would appreciate it. i am happy to try and run them myself, but would need instruction. |
@ulmononian is this in reference to |
@MatthewMasarik-NOAA sorry -- you are correct that only the gnu spack-stack scotch installation is failing. this pr is just to add the option for using shared libraries in the future. we won't switch from static to shared on the spack side until discussing with your team & as you said, resolving the static (gnu) issues first. |
@ulmononian, okay glad to hear the intel spack-stack is working. I understand this is just an option. Though if we add the ability to select an option, the functionality it selects should be working, right? If not, doesn't this just kick the same problem down the road? |
Hi @ulmononian, I'll mention that when we were trying to resolve scotch issues on As far as testing, I think you are going about it the easiest way, using the a coupled UFS RT. I'm happy to give you a demo on how you could debug in WW3 standalone though, if that's something you'd like to try. Whichever of those you use you will always have to rebuild SCOTCH + WW3, and then do a run as well, at least up to model init, because that is the only way you can confirm a successful build. Since the builds and run details like job card resources are all hidden when you use rt.sh in UFS, I think it's going to be easiest continuing with testing like that, vs. standalone WW3, but I will teach you if you like. |
@ulmononian we've merged in a fix for the CI. Please sync when you have a chance |
Hi @ulmononian, there hasn't been any activity on this in awhile. Do you plan to pursue in the near future, or should this be a draft for the time being? Thanks for any status update |
@MatthewMasarik-NOAA sorry about the radio silence. this was removed from my radar. i don't think i'll be able to pursue this for a while, so it can be kept as a draft (or closed). |
Hi @ulmononian, no worries. thanks for letting me know where things stand. If spack-stack does go to just shared builds then this will be nice to have, and I suspect it is already pretty close. So I think we should keep it in the queue for the time being. It looks like as a maintainer I'm not able to mark the PR as a draft, could you mark it a draft? thanks again for the update. |
Pull Request Summary
Enable the (optional) use of shared scotch libraries.
Description
Some changes to cmake/FindSCOTCH.cmake and model/src/CMakeLists.txt are added here so that shared scotch libraries can be used when appropriate/wanted. Future spack-stack installations will most likely install only the shared libraries, so the capability will become necessary. Static library options need to be retain for operational machines where shared libraries are not supported.
Please also include the following information:
Potential reviewers: @MatthewMasarik-NOAA @JessicaMeixner-NOAA
Issue(s) addressed
Fixes #1021
Commit Message
Enable the (optional) use of shared scotch libraries.
Check list
Testing
using the PDLIB RT cmake settings from the UFS-WM (i.e.
cmake -DAPP=S2SW -DCCPP_SUITES=FV3_GFS_v17_coupled_p8 -DPDLIB=ON ..
)I am only sure of how they would be covered in the UFS-WM S2SW/S2SWA configurations where PDLIB is turned on.
No