This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Make `-Xarch_host` and `-Xarch_device` work for OpenMP offloading
ClosedPublic

Authored by jhuber6 on Jan 17 2023, 7:36 AM.

Details

Summary

Clang currently supports the -Xarch_host and -Xarch_device variants
to handle passing arguments to only one part of the offloading
toolchain. This was previously only supported fully for HIP / CUDA This
patch simple updates the logic to make it work for any offloading kind.

Fixes #59799

Diff Detail

Event Timeline

jhuber6 created this revision.Jan 17 2023, 7:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 7:36 AM
Herald added a subscriber: guansong. · View Herald Transcript
jhuber6 requested review of this revision.Jan 17 2023, 7:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 7:36 AM
jhuber6 retitled this revision from [OpenMP] Make `-Xarch_host` and `-Xarch_device` for for OpenMP offloading to [OpenMP] Make `-Xarch_host` and `-Xarch_device` work for OpenMP offloading.Jan 17 2023, 7:38 AM
This revision is now accepted and ready to land.Jan 17 2023, 9:18 AM
This revision was landed with ongoing or failed builds.Jan 17 2023, 10:39 AM
This revision was automatically updated to reflect the committed changes.