This patch fixes the data sharing infrastructure to work for the SPMD and non-SPMD cases.
Details
Details
- Reviewers
ABataev grokos carlo.bertolli caomhin - Commits
- rG9e94326185b9: [OpenMP][libomptarget] Fix data sharing and globalization infrastructure to…
rOMP337013: [OpenMP][libomptarget] Fix data sharing and globalization infrastructure to…
rL337013: [OpenMP][libomptarget] Fix data sharing and globalization infrastructure to…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
libomptarget/deviceRTLs/nvptx/src/data_sharing.cu | ||
---|---|---|
416 ↗ | (On Diff #155053) | Better use SafeMalloc. |
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h | ||
295–296 ↗ | (On Diff #155053) | Leftover comment from the previous implementation? In data_sharing.cu we said that for uniformity the master thread uses slots of the same size as the workers. |
316 ↗ | (On Diff #155053) | Is master_rootS still needed? From what I understand, all threads (master and workers) now use the same slot type, that's why worker_rootS was increased in size from WARPSIZE-1 to WARPSIZE. |
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h | ||
---|---|---|
316 ↗ | (On Diff #155053) | It is for the ibm-devel data sharing. We can take this out once we deprecate/remove the "old" data sharing scheme. |
libomptarget/deviceRTLs/nvptx/src/data_sharing.cu | ||
---|---|---|
478 ↗ | (On Diff #155255) | USe SafeFree |
Comment Actions
I don't have any further comments.
@ABataev: When you are also happy with formatting etc. please accept the patch.