This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Do not add wrapper headers if using '-nogpuinc'
ClosedPublic

Authored by jhuber6 on Nov 23 2022, 11:27 AM.

Details

Summary

The OpenMP offloading toolchain uses wrapper headers to implement some
standard features on the GPU. Currently there is no way to turn these
off without also disabling all the standard includes altogether. This
patch makes -nogpuinc apply to these wrapper headers so we can use a
sterile toolchain. This was causing problems when attempting to compile
a libc for the GPU using OpenMP.

Diff Detail

Event Timeline

jhuber6 created this revision.Nov 23 2022, 11:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 11:27 AM
Herald added a subscriber: guansong. · View Herald Transcript
jhuber6 requested review of this revision.Nov 23 2022, 11:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 11:28 AM
This revision is now accepted and ready to land.Nov 23 2022, 11:52 AM
This revision was automatically updated to reflect the committed changes.