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

Commit bcf4712

Browse files
authored
Support fast_imem on CPU in GPU builds. (#72)
* In GPU/OpeACC code generation, in the CPU execution branch the code for fast membrane current calculation was not emitted * This fixes BlueBrain/CoreNeuron#670
1 parent 2234d28 commit bcf4712

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mod2c_core/noccout.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ static void rhs_d_pnt_race(const char* r, const char* d) {
181181
\n int _nd_idx = _ni[_iml];\
182182
\n _vec_rhs[_nd_idx] %s _vec_shadow_rhs[_iml];\
183183
\n _vec_d[_nd_idx] %s _vec_shadow_d[_iml];\
184+
%s\
184185
\n }\
185186
\n#else\
186187
\n for (_iml = 0; _iml < _cntml_actual; ++_iml) {\
@@ -189,7 +190,7 @@ static void rhs_d_pnt_race(const char* r, const char* d) {
189190
\n _vec_d[_nd_idx] %s _vec_shadow_d[_iml];\
190191
%s\
191192
\n#endif\
192-
\n", r, d, r, d, print_fast_imem_code());
193+
\n", r, d, print_fast_imem_code(), r, d, print_fast_imem_code());
193194
P(buf);
194195
}
195196

0 commit comments

Comments
 (0)