This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Refactor SPMD and runtime requirement checking
ClosedPublic

Authored by gtbercea on Nov 27 2018, 10:59 AM.

Details

Summary

Refactor the checking for SPMD mode and whether the runtime is initialized or not. This uses constant flags which enables the runtime to optimize out unused sections of code that depend on these flags.

Diff Detail

Repository
rOMP OpenMP

Event Timeline

gtbercea created this revision.Nov 27 2018, 10:59 AM
ABataev added inline comments.Nov 27 2018, 11:10 AM
libomptarget/deviceRTLs/nvptx/src/loop.cu
325–326

checkSPMDMode(loc)?

libomptarget/deviceRTLs/nvptx/src/sync.cu
42–43

checkRuntimeUninitialized(loc_ref)?

gtbercea updated this revision to Diff 175542.Nov 27 2018, 11:18 AM
Address comments.
gtbercea marked 2 inline comments as done.Nov 27 2018, 11:18 AM
This revision is now accepted and ready to land.Nov 27 2018, 11:20 AM
This revision was automatically updated to reflect the committed changes.