-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: develop
Are you sure you want to change the base?
Conversation
Sync develop into main
Sync develop into main
Sync develop into main
Sync develop into main
CMakeLists.txt
Outdated
if (GPU_PHYSICS) | ||
target_link_libraries ( | ||
GEOSgcm.x | ||
-fopenacc -foffload="-lgfortran -lgomp -lm" -foffload=nvptx-none |
There was a problem hiding this comment.
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.
If the CMake option
GPU_PHYSICS
isON
, link to OpenACC libs.