Skip to content

Conversation

pchakraborty
Copy link
Collaborator

If the CMake option GPU_PHYSICS is ON, link to OpenACC libs.

@pchakraborty pchakraborty added 0 diff The changes in this pull request have verified to be zero-diff with the target branch. 0 diff trivial The changes in this pull request are trivially zero-diff (documentation, build failure, &c.) labels Jun 26, 2023
@pchakraborty pchakraborty requested a review from a team as a code owner June 26, 2023 13:54
CMakeLists.txt Outdated
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.

@pchakraborty pchakraborty marked this pull request as draft June 29, 2023 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff trivial The changes in this pull request are trivially zero-diff (documentation, build failure, &c.) 0 diff The changes in this pull request have verified to be zero-diff with the target branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants