This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NVPTX][CUDA] Adding support for printf for an NVPTX OpenMP device.
ClosedPublic

Authored by arpith-jacob on Mar 4 2016, 8:44 AM.

Details

Summary

Support for CUDA printf is exploited to support printf for an NVPTX OpenMP device.

To reflect the support of both programming models, the file CGCUDABuiltin.cpp has been changed to CGGPUBuiltin.cpp, and the call EmitCUDADevicePrintfCallExpr has been changed to EmitGPUDevicePrintfCallExpr.

Diff Detail

Repository
rL LLVM

Event Timeline

arpith-jacob retitled this revision from to [OpenMP][NVPTX][CUDA] Adding support for printf for an NVPTX OpenMP device..
arpith-jacob updated this object.
arpith-jacob added a reviewer: jlebar.
jlebar accepted this revision.Mar 4 2016, 9:43 AM
jlebar edited edge metadata.

Didn't look carefully at the test (let me know if you'd like me to). The rest looks good to me.

This revision is now accepted and ready to land.Mar 4 2016, 9:43 AM

Thanks for the quick review! The test cases are the same as the CUDA version so it should be fine.

mkuron added a subscriber: mkuron.Mar 20 2016, 9:12 AM

Looks like patch was not committed.

This revision was automatically updated to reflect the committed changes.
cfe/trunk/lib/CodeGen/CGBuiltin.cpp