diff --git a/machines/Depends.nvhpc b/machines/Depends.nvhpc index 5570ef17..94d631f6 100644 --- a/machines/Depends.nvhpc +++ b/machines/Depends.nvhpc @@ -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\ diff --git a/machines/cmake_macros/nvhpc.cmake b/machines/cmake_macros/nvhpc.cmake index 39c91fce..33d3664d 100644 --- a/machines/cmake_macros/nvhpc.cmake +++ b/machines/cmake_macros/nvhpc.cmake @@ -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() \ No newline at end of file