-
Notifications
You must be signed in to change notification settings - Fork 19
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
fixed profiler dependency on new gftl-v2 #1335
Conversation
This PR addresses issue #1334 |
Blocking for just a second so I can fix up the branch for release. |
Actually, let me keep blocked as I run a GEOSgcm test. |
Zero-diff and builds. |
Add label DNA back. I want to understand what happens here |
I guess I figure out what happened here. The include path can be inherited from dependence. Since profiler depends on mapl.shared, it inherits its include path. Mapl.shared depends on pflogger which has all gFTL's paths. In our GEOSgcm, we build and use pFlogger but in UFS, only pFlogger_stub is used. That is why in UFS, v2 path is missing. This PR should work for UFS, but we may add fake dependence to pfloger_stub to make it really mimic pFlogger. |
@weiyuan-jiang Well done! And this speaks directly to why it is so important for us to list all the explicit dependencies of each layer. Otherwise we get surprising results when unrelated layers are changed elsewhere in the model. |
Dang. Good job figuring this out. CMake is...fun this way!. The question for @tclune is: should @weiyuan-jiang add the fake dependence in pflogger_stub? |
@weiyuan-jiang Okay. I talked with @tclune. I think what you should do is this. In both
The reason is that both are currently using both! You can see all the v2 uses:
but of course they use v1 in many more places! |
Changed |
Thanks. I'll do a build-and-run test to be sure all is well. |
Works for me. Approving. |
GFTL::gftl and GFTL::gftl-v1 are the same thing. So one should not specify them both. Someday GFTL::gftl will be an alias for gftl-v2. It sort of provides a future-safe way of upgrading, except that the Fortran files still need to change for it to help. Probably a waste of effort on my part. |
Fix profiler dependency on gftl-v2
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: