This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Add new version of SPMD deinit kernel function with argument
ClosedPublic

Authored by gtbercea on Nov 27 2018, 1:05 PM.

Details

Summary

To enable the compiler to optimize parts of the function that are not needed when runtime can be omitted, a new version of the SPMD deinit kernel function is needed. This function takes the runtime required flag as an argument.

Diff Detail

Repository
rOMP OpenMP

Event Timeline

gtbercea created this revision.Nov 27 2018, 1:05 PM
ABataev added inline comments.Nov 27 2018, 1:07 PM
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu
191

Could try to avoid copy-paste here? The original function may just call the new one with the isRuntimeInitialized() argument.

gtbercea updated this revision to Diff 175569.Nov 27 2018, 1:14 PM
Call new function in the old function.
gtbercea marked an inline comment as done.Nov 27 2018, 1:15 PM
This revision is now accepted and ready to land.Nov 27 2018, 1:20 PM
This revision was automatically updated to reflect the committed changes.