12 #define _PRAGMA_FOR_INIT_ACC_LOOP_ \
13 nrn_pragma_acc(parallel loop present(vdata [0:_cntml_padded * nparm]) if (_nt->compute_gpu)) \
14 nrn_pragma_omp(target teams distribute parallel for simd if(_nt->compute_gpu))
15 #define CNRN_FLAT_INDEX_IML_ROW(i) ((i) * (_cntml_padded) + (_iml))
19 static const char*
mechanism[] = {
"0",
"capacitance",
"cm", 0,
"i_cap", 0, 0};
45 #define cm vdata[CNRN_FLAT_INDEX_IML_ROW(0)]
46 #define i_cap vdata[CNRN_FLAT_INDEX_IML_ROW(1)]
60 double cfac = .001 * _nt->
cj;
74 for (_iml = 0; _iml < _cntml_actual; _iml++) {
75 _vec_d[ni[_iml]] += cfac *
cm;
93 for (
int _iml = 0; _iml < _cntml_actual; _iml++) {
102 double cfac = .001 * _nt->
cj;
106 (void) _cntml_padded;
116 ni [0:_cntml_actual],
120 for (
int _iml = 0; _iml < _cntml_actual; _iml++) {
121 i_cap = cfac *
cm * _vec_rhs[ni[_iml]];
141 (void) _cntml_padded;
147 for (_iml = 0; _iml < _cntml_actual; _iml++) {
162 (void) _cntml_padded;
166 const double cfac = .001 * _nt->
cj;
170 for (_iml = 0; _iml < _cntml_actual; _iml++) {
#define _PRAGMA_FOR_INIT_ACC_LOOP_
nrn_pragma_acc(routine seq) nrn_pragma_omp(declare target) philox4x32_ctr_t coreneuron_random123_philox4x32_helper(coreneuron nrn_pragma_omp(end declare target) namespace coreneuron
Provide a helper function in global namespace that is declared target for OpenMP offloading to functi...
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
void capacitance_reg(void)
void _nrn_layout_reg(int, int)
void nrn_mul_capacity(NrnThread *, Memb_list *, int)
void nrn_div_capacity(NrnThread *, Memb_list *, int)
static const char * mechanism[]
void nrn_cur_capacitance(NrnThread *_nt, Memb_list *ml, int type)
void nrn_alloc_capacitance(double *data, Datum *pdata, int type)
int nrn_get_mechtype(const char *name)
Get mechanism type by the mechanism name.
nrn_pragma_acc(routine seq) int vector_capacity(void *v)
void hoc_register_prop_size(int, int, int)
int register_mech(const char **m, mod_alloc_t alloc, mod_f_t cur, mod_f_t jacob, mod_f_t stat, mod_f_t initialize, mod_f_t private_constructor, mod_f_t private_destructor, int nrnpointerindex, int vectorized)
void nrn_init_capacitance(NrnThread *, Memb_list *, int)
void nrn_jacob_capacitance(NrnThread *, Memb_list *, int)
A view into a set of mechanism instances.
Represent main neuron object computed by single thread.
Non-template stable handle to a generic value.