When a scalar argument is explicitly mapped, the device kernel needs to be passed that argument by reference.
This is a partial fix to this bug.
The full fix requires data sharing support which will land in future patches.
Differential D29905
[OpenMP] Pass argument to device kernel by reference when map is used. gtbercea on Feb 13 2017, 12:32 PM. Authored by
Details When a scalar argument is explicitly mapped, the device kernel needs to be passed that argument by reference. This is a partial fix to this bug. The full fix requires data sharing support which will land in future patches.
Diff Detail
Event Timeline
Comment Actions Sorry, I wasn't aware of this revision and thought that it had long been committed. I just verified that the bug referenced in the summary is also fixed by my patch in D34888. However, I can't comment on whether this patch is still needed. Sorry for the conflicts if yes... You probably should commit your patches earlier, you currently have 10 accepted revisions that have not yet been committed. This will also avoid complicated rebases and so on. Comment Actions No problem at all! I am trying to commit the rest of the patches. Currently waiting on one more patch to get approved that will unlock the rest. I do encourage you to review/comment on it: https://reviews.llvm.org/D34784 :) |
Are you sure this is correct? If I is 1, I-2 will give you 0xFFFFFFFF. Please, check everything one more time