-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
eCLM-ParFlow-PDAF builds
- JUWELS: Succeeds
- Ubuntu: Error from CI: Add PDAF builds #82
Issue description in original comment
The issue seems to be the way ParFlow linker flags are manually specified:
TSMP2/cmake/BuildPDAFMODEL.cmake
Lines 98 to 104 in f45128a
| if(DEFINED PARFLOW_SRC) | |
| list(APPEND PDAF_LIBS "-L${CMAKE_INSTALL_PREFIX}/lib -lpfsimulator -lamps -lpfkinsol -lgfortran -lcjson") | |
| # GPU | |
| # list(APPEND PDAF_LIBS "-L${CMAKE_INSTALL_PREFIX}/rmm/lib -lstdc++ -lcudart -lrmm -lnvToolsExt") | |
| list(APPEND PDAF_LIBS "-L${HYPRE_ROOT}/lib -lHYPRE") | |
| list(APPEND PDAF_LIBS "-L/lib64 -lslurm") | |
| endif() |
The correct linker flags for ParFlow 3rd party dependencies (e.g. CUDA, Hypre) are generated by the ParFlow CMake scripts. Unfortunately TSMP2 cannot directly access these flags since they are dynamically generated. We need to find a way to extract these linker info from ParFlow.
Originally posted by @kvrigor in #82 (comment)