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.
Paths
| Differential D120910
[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 This is due to action builder does not set correct
Diff Detail Event Timelineyaxunl added a parent revision: D120911: [CUDA][HIP] Fix offloading kind for linking C++ programs.Mar 3 2022, 8:10 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 Closed by commit rGbde13a8102ba: [HIP] Fix job action offloading kind for mixed HIP/C++ compilation (authored by yaxunl). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 412723 clang/lib/Driver/Driver.cpp
clang/test/Driver/hip-phases.hip
|