Skip to content

eCLM-ParFlow-PDAF: HYPRE/SLURM library linking issue #84

@jjokella

Description

@jjokella

eCLM-ParFlow-PDAF builds

Issue description in original comment

The issue seems to be the way ParFlow linker flags are manually specified:

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    PDAFInvolves PDAFParflowInvolves ParFloweCLMInvolves eCLM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions