This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree 5 files changed +7
-7
lines changed
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)
55
55
if (CORENRN_ENABLE_OPENMP AND CORENRN_ENABLE_OPENMP_OFFLOAD)
56
56
# Enable OpenMP target offload to GPU and if both OpenACC and OpenMP directives are available
57
57
# for a region then prefer OpenMP.
58
- add_compile_definitions (CORENRN_PREFER_OPENMP_OFFLOAD )
58
+ add_compile_definitions (CORENEURON_PREFER_OPENMP_OFFLOAD )
59
59
endif ()
60
60
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
61
61
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 27
27
#ifdef _OPENACC
28
28
#include < openacc.h>
29
29
#endif
30
- #ifdef CORENRN_PREFER_OPENMP_OFFLOAD
30
+ #ifdef CORENEURON_PREFER_OPENMP_OFFLOAD
31
31
#include < omp.h>
32
32
#endif
33
33
@@ -1435,7 +1435,7 @@ void init_gpu() {
1435
1435
1436
1436
int device_num = local_rank % num_devices_per_node;
1437
1437
acc_set_device_num (device_num, device_type);
1438
- #ifdef CORENRN_PREFER_OPENMP_OFFLOAD
1438
+ #ifdef CORENEURON_PREFER_OPENMP_OFFLOAD
1439
1439
omp_set_default_device (device_num);
1440
1440
#endif
1441
1441
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ void nrnthread_v_transfer(NrnThread* _nt) {
114
114
int * insrc_indices = ttd.insrc_indices .data ();
115
115
double * tar_data = _nt->_data ;
116
116
// 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 )
118
118
int n_insrc_buf = insrcdspl_[nrnmpi_numprocs];
119
119
int ndata = _nt->_ndata ;
120
120
#endif
Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ void solve_interleaved2(int ith) {
598
598
int * strides = ii.stride ; // sum ncycles of these (bad since ncompart/warpsize)
599
599
int * rootbegin = ii.firstnode ; // nwarp+1 of these
600
600
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 )
602
602
int nstride = stridedispl[nwarp];
603
603
#endif
604
604
nrn_pragma_acc (parallel loop gang vector vector_length (
Original file line number Diff line number Diff line change 9
9
#include < cstddef>
10
10
11
11
#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)
13
13
#define nrn_pragma_acc (x )
14
14
#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 ) && \
16
16
defined (_OPENACC)
17
17
#define nrn_pragma_acc (x ) _Pragma (nrn_pragma_stringify(acc x))
18
18
#define nrn_pragma_omp (x )
You can’t perform that action at this time.
0 commit comments