Skip to content

Commit

Permalink
Avoid issue with GPU builds with the latest NVHPC (>23.1) (#2680)
Browse files Browse the repository at this point in the history
* @matz-e pointed out that the issue #2563 would be solved by initializing the key with {0, 0}.
* As value initialization is supposed to work, we believe this is a regression in NVHPC.
  • Loading branch information
pramodk authored Jan 22, 2024
1 parent d59d458 commit d775050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreneuron/utils/randoms/nrnran123.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace random123_global {
#else
#define g_k_qualifiers
#endif
g_k_qualifiers philox4x32_key_t g_k{};
g_k_qualifiers philox4x32_key_t g_k{{0, 0}};

// Cannot refer to g_k directly from a nrn_pragma_acc(routine seq) method like
// coreneuron_random123_philox4x32_helper, and cannot have this inlined there at
Expand Down

0 comments on commit d775050

Please sign in to comment.