This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Commit 0219aa6
authored
Fix GPU compilation issue when nrn_ghk is used in the MOD files (#498)
- nrn_ghk was recently added but `acc routine seq` was missing
- nrn_ghk uses celsius which is an extern variable. All extern
variables require `acc declare create/copyin` caluse.
- As global variables can be initialized after device attachment
(celsius in this case), we need to make sure celsius is updated
on the device.
- Replacing `data` clause with `update device` is sufficient. In
this case `data` clause doesn't update value on device when
checked in eion.cpp.1 parent 14ad572 commit 0219aa6
3 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
0 commit comments