Skip to content
Draft
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ ecbuild_add_executable (
SOURCES GEOSgcm.F90
LIBS GEOSgcm_GridComp esmf OpenMP::OpenMP_Fortran
)
if (GPU_PHYSICS)
target_link_libraries (
GEOSgcm.x
-fopenacc -foffload="-lgfortran -lgomp -lm" -foffload=nvptx-none
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pchakraborty This might be better as a variable or set of variables in ESMA_cmake in compiler/flags/GNU_Fortran.cmake. That way if you need to reuse them anywhere they can be (not sure you will, but just in case).

Note that if you do that, you might as well do it in GEOS-ESM/ESMA_cmake#322, but you might have to move up your GPU_PHYSICS option in there to before we do the ### Compiler Support ### bits.

)
endif ()

ecbuild_add_executable (
TARGET idfupd.x
Expand Down