[nfc][omptarget] Use builtin var abstraction. Second pass at D69476
Use the wrappers in support.h for cuda builtin variables at all call sites.
Localises use of cuda and removes WARPSIZE==32 assumption in debug.h.
Paths
| Differential D69693
[nfc][omptarget] Use builtin var abstraction. Second pass at D69476 ClosedPublic Authored by JonChesterfield on Oct 31 2019, 5:03 PM.
Details Summary [nfc][omptarget] Use builtin var abstraction. Second pass at D69476 Use the wrappers in support.h for cuda builtin variables at all call sites.
Diff Detail
Event TimelineComment Actions LGTM.
This revision is now accepted and ready to land.Oct 31 2019, 5:48 PM Closed by commit rG9b06ac98d081: [nfc][omptarget] Use builtin var abstraction. Second pass at D69476 (authored by JonChesterfield). · Explain WhyOct 31 2019, 7:22 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 227379 openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu
openmp/libomptarget/deviceRTLs/nvptx/src/support.cu
|
Less duplication, great!