Skip to content

Commit

Permalink
Merge pull request #204 from sjsprecious/add_new_clubb_code
Browse files Browse the repository at this point in the history
Add new CLUBB code for GPU compilation
  • Loading branch information
jedwards4b authored Jan 21, 2025
2 parents 77fd32c + 0d1fd02 commit f3cae52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions machines/Depends.nvhpc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ mo_rte_solver_kernels.o \
mo_optical_props_kernels.o

CLUBB_OBJS=\
clubb_intr.o\
adg1_adg2_3d_luhar_pdf.o\
advance_clubb_core_module.o\
advance_helper_module.o\
Expand Down
6 changes: 6 additions & 0 deletions machines/cmake_macros/nvhpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ if (GPU_TYPE STREQUAL a100)
if (OPENMP_GPU_OFFLOAD)
string(APPEND OPENMP_GPU_FLAGS " -mp=gpu -gpu=cc80,lineinfo,nofma -Minfo=accel ")
endif()
endif()
if (OPENACC_GPU_FLAGS)
string(APPEND LDFLAGS " ${OPENACC_GPU_FLAGS}")
endif()
if (OPENMP_GPU_FLAGS)
string(APPEND LDFLAGS " ${OPENMP_GPU_FLAGS}")
endif()

0 comments on commit f3cae52

Please sign in to comment.