Skip to content
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

Link to OpenACC libs if GPU_PHYSICS option is set #482

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from

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.

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