This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Fix job action offloading kind for mixed HIP/C++ compilation
ClosedPublic

Authored by yaxunl on Mar 3 2022, 7:55 AM.

Details

Summary

When both HIP and C++ programs are input files to clang
with -c, clang treats C++ programs as HIP programs,
which is incorrect.

This is due to action builder does not set correct
offloading kind for job actions for C++ programs.

Diff Detail

Event Timeline

yaxunl created this revision.Mar 3 2022, 7:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 7:55 AM
yaxunl requested review of this revision.Mar 3 2022, 7:55 AM
tra accepted this revision.Mar 4 2022, 10:01 AM
This revision is now accepted and ready to land.Mar 4 2022, 10:01 AM
This revision was landed with ongoing or failed builds.Mar 4 2022, 12:34 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 12:34 PM