This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Codegen for the 'target parallel' directive on the NVPTX device.
ClosedPublic

Authored by arpith-jacob on Jan 15 2017, 5:24 PM.

Details

Summary

This patch adds codegen for the 'target parallel' directive on the NVPTX
device. We term offload OpenMP directives such as 'target parallel' and
'target teams distribute parallel for' as SPMD constructs. SPMD constructs,
in contrast to generic ones like the plain 'target', can never contain
a serial region.

SPMD constructs can be handled more efficiently on the GPU and do not
require the Warp loop of the generic codegen scheme. This patch adds
SPMD codegen support for 'target parallel' and can be reused for other
SPMD constructs.

Diff Detail

Event Timeline

arpith-jacob retitled this revision from to [OpenMP] Codegen for the 'target parallel' directive on the NVPTX device..
arpith-jacob updated this object.
arpith-jacob added a subscriber: cfe-commits.
ABataev accepted this revision.Jan 16 2017, 12:37 AM
ABataev edited edge metadata.

LG

This revision is now accepted and ready to land.Jan 16 2017, 12:37 AM
This revision was automatically updated to reflect the committed changes.