This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Change AAKernelInfo to ignore non-kernels
ClosedPublic

Authored by jhuber6 on Aug 17 2021, 5:31 PM.

Details

Summary

Currently, AAKernelInfo will fail on an assertion if we attempt to run
it on a kernel without the init / deinit runtime calls. However, this
occurs for global constructors on the device. This will cause OpenMPOpt
to crash whenever global constructors are present. This patch removes
this assertion and just gives up instead.

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 17 2021, 5:31 PM
jhuber6 requested review of this revision.Aug 17 2021, 5:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2021, 5:31 PM
This revision is now accepted and ready to land.Aug 18 2021, 7:41 AM
This revision was automatically updated to reflect the committed changes.