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

Commit 9f8da7c

Browse files
oluptoniomaganaris
andcommitted
Apply suggestions from code review
Co-authored-by: Ioannis Magkanaris <iomagkanaris@gmail.com>
1 parent f4c2eb6 commit 9f8da7c

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

coreneuron/mechanism/mech/mod2c_core_thread.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ struct SparseObj { /* all the state information */
9393
};
9494

9595
nrn_pragma_acc(routine seq)
96+
nrn_pragma_omp(declare target)
9697
extern double* _nrn_thread_getelm(SparseObj* so, int row, int col, int _iml);
98+
nrn_pragma_omp(end declare target)
9799

98100
extern void* nrn_cons_sparseobj(SPFUN, int, Memb_list*, _threadargsproto_);
99101

coreneuron/permute/cellorder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,8 @@ void solve_interleaved2(int ith) {
596596
int* strides = ii.stride; // sum ncycles of these (bad since ncompart/warpsize)
597597
int* rootbegin = ii.firstnode; // nwarp+1 of these
598598
int* nodebegin = ii.lastnode; // nwarp+1 of these
599-
#if defined(_OPENACC) && !defined(CORENEURON_PREFER_OPENMP_OFFLOAD) && defined(_OPENACC)
599+
#if defined(CORENEURON_ENABLE_GPU) && !defined(CORENEURON_PREFER_OPENMP_OFFLOAD) && \
600+
defined(_OPENACC)
600601
int nstride = stridedispl[nwarp];
601602
#endif
602603
nrn_pragma_acc(parallel loop gang vector vector_length(

coreneuron/sim/scopmath/ssimplic_thread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ namespace coreneuron {
1515
#define s_(arg) _p[s[arg] * _STRIDE]
1616

1717
nrn_pragma_acc(routine seq)
18+
nrn_pragma_omp(declare target)
1819
static int check_state(int, int*, _threadargsproto_);
20+
nrn_pragma_omp(end declare target)
1921

2022
int _ss_sparse_thread(SparseObj* v,
2123
int n,

0 commit comments

Comments
 (0)