This patch fixes the data sharing infrastructure to work for the SPMD and non-SPMD cases.
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
- Repository
- rOMP OpenMP
- Build Status
Buildable 20322 Build 20322: arc lint + arc unit
Event Timeline
libomptarget/deviceRTLs/nvptx/src/data_sharing.cu | ||
---|---|---|
416 | Better use SafeMalloc. | |
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h | ||
295–296 | 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. | |
314 | 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 | ||
---|---|---|
314 | 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 | USe SafeFree |
I don't have any further comments.
@ABataev: When you are also happy with formatting etc. please accept the patch.
Better to check !isSPMDMode() at first