This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Disable `libc` headers for offloading languages
ClosedPublic

Authored by jhuber6 on Jun 22 2023, 12:04 PM.

Details

Summary

These headers are currently broken when included from the offloading
languages like OpenMP, OpenCL, CUDA, and HIP. Turn this logic off so we
can compile these languages when the GPU libc is installed. I am
currently trying to remedy this and have made an RFC for it in libc,
see https://discourse.llvm.org/t/rfc-implementing-gpu-headers-in-the-llvm-c-library/71523.

Diff Detail

Event Timeline

jhuber6 created this revision.Jun 22 2023, 12:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 12:04 PM
Herald added a subscriber: Anastasia. · View Herald Transcript
jhuber6 requested review of this revision.Jun 22 2023, 12:04 PM
JonChesterfield accepted this revision.Jun 22 2023, 12:07 PM

Thanks, unblocked :)

This revision is now accepted and ready to land.Jun 22 2023, 12:07 PM
This revision was landed with ongoing or failed builds.Jun 22 2023, 12:12 PM
This revision was automatically updated to reflect the committed changes.