Remove loopTripCnt from threaded device stack after consuming it.
Added a libomptarget DP message to aid in future debugging and to
validate the added testcase, which only runs in Debug build.
%ld => %lu
removed extraneous braces.
Differential D64808
[OPENMMP] Resolve lost LoopTripCnt for subsequent loops in same thread. ronlieb on Jul 16 2019, 10:24 AM. Authored by
Details
Remove loopTripCnt from threaded device stack after consuming it. %ld => %lu
Diff Detail Event TimelineComment Actions Can we validate the result differently, without debug messages?
Comment Actions The patch should definitely be committed as it fixes a potential problem with multiple threads. Regarding the test, I'm a bit torn. I don't like the idea of relying on debug messages either, but you are right that the plugin may change the number of teams so we cannot predict consistently what omp_get_num_teams() will return on each architecture. I will accept the patch as-is so that the bugfix in merged into the 9.0 release but we will need to revise the test in the future. |
Use %lu instead, it is an unsigned type.