This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if(CORENRN_ENABLE_GPU)
5555 if (CORENRN_ENABLE_OPENMP AND CORENRN_ENABLE_OPENMP_OFFLOAD)
5656 # Enable OpenMP target offload to GPU and if both OpenACC and OpenMP directives are available
5757 # for a region then prefer OpenMP.
58- add_compile_definitions (CORENRN_PREFER_OPENMP_OFFLOAD )
58+ add_compile_definitions (CORENEURON_PREFER_OPENMP_OFFLOAD )
5959 endif ()
6060 elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
6161 set (NVHPC_ACC_COMP_FLAGS "-fopenmp -fopenmp-targets=nvptx64-nvidia-cuda -Wno-unknown-cuda-version -I${CUDAToolkit_INCLUDE_DIRS} " )
Original file line number Diff line number Diff line change 2727#ifdef _OPENACC
2828#include < openacc.h>
2929#endif
30- #ifdef CORENRN_PREFER_OPENMP_OFFLOAD
30+ #ifdef CORENEURON_PREFER_OPENMP_OFFLOAD
3131#include < omp.h>
3232#endif
3333
@@ -1435,7 +1435,7 @@ void init_gpu() {
14351435
14361436 int device_num = local_rank % num_devices_per_node;
14371437 acc_set_device_num (device_num, device_type);
1438- #ifdef CORENRN_PREFER_OPENMP_OFFLOAD
1438+ #ifdef CORENEURON_PREFER_OPENMP_OFFLOAD
14391439 omp_set_default_device (device_num);
14401440#endif
14411441
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ void nrnthread_v_transfer(NrnThread* _nt) {
114114 int * insrc_indices = ttd.insrc_indices .data ();
115115 double * tar_data = _nt->_data ;
116116 // last element in the displacement vector gives total length
117- #if defined(_OPENACC) && !defined(CORENRN_PREFER_OPENMP_OFFLOAD )
117+ #if defined(_OPENACC) && !defined(CORENEURON_PREFER_OPENMP_OFFLOAD )
118118 int n_insrc_buf = insrcdspl_[nrnmpi_numprocs];
119119 int ndata = _nt->_ndata ;
120120#endif
Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ void solve_interleaved2(int ith) {
598598 int * strides = ii.stride ; // sum ncycles of these (bad since ncompart/warpsize)
599599 int * rootbegin = ii.firstnode ; // nwarp+1 of these
600600 int * nodebegin = ii.lastnode ; // nwarp+1 of these
601- #if defined(_OPENACC) && !defined(CORENRN_PREFER_OPENMP_OFFLOAD )
601+ #if defined(_OPENACC) && !defined(CORENEURON_PREFER_OPENMP_OFFLOAD )
602602 int nstride = stridedispl[nwarp];
603603#endif
604604 nrn_pragma_acc (parallel loop gang vector vector_length (
Original file line number Diff line number Diff line change 99#include < cstddef>
1010
1111#define nrn_pragma_stringify (x ) #x
12- #if defined(CORENEURON_ENABLE_GPU) && defined(CORENRN_PREFER_OPENMP_OFFLOAD ) && defined(_OPENMP)
12+ #if defined(CORENEURON_ENABLE_GPU) && defined(CORENEURON_PREFER_OPENMP_OFFLOAD ) && defined(_OPENMP)
1313#define nrn_pragma_acc (x )
1414#define nrn_pragma_omp (x ) _Pragma (nrn_pragma_stringify(omp x))
15- #elif defined(CORENEURON_ENABLE_GPU) && !defined(CORENRN_PREFER_OPENMP_OFFLOAD ) && \
15+ #elif defined(CORENEURON_ENABLE_GPU) && !defined(CORENEURON_PREFER_OPENMP_OFFLOAD ) && \
1616 defined (_OPENACC)
1717#define nrn_pragma_acc (x ) _Pragma (nrn_pragma_stringify(acc x))
1818#define nrn_pragma_omp (x )
You can’t perform that action at this time.
0 commit comments