Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 02abf78

Browse files
authored
GPU data management using OpenACC as well as OpenMP API (#704)
* Add wrapper functions for using OpenMP or OpenACC API * Add -mp=gpu in order to link gpu runtime with tests as well * Avoid copying VecPlay members twice otherwise association fails with OpenMP * IvocVect members t_ and y_ were copied twice * only discon_indices_ is pointer and hence that needs to be copied
1 parent 21dc2c8 commit 02abf78

File tree

3 files changed

+523
-395
lines changed

3 files changed

+523
-395
lines changed

CMake/OpenAccHelper.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ if(CORENRN_ENABLE_GPU)
6868
# for a region then prefer OpenMP.
6969
add_compile_definitions(CORENEURON_PREFER_OPENMP_OFFLOAD)
7070
string(APPEND NVHPC_ACC_COMP_FLAGS " -mp=gpu -Minfo=mp")
71+
string(APPEND NVHPC_ACC_LINK_FLAGS " -mp=gpu")
7172
endif()
7273
# avoid PGI adding standard compliant "-A" flags
7374
set(CMAKE_CXX14_STANDARD_COMPILE_OPTION --c++14)

0 commit comments

Comments
 (0)