This is an archive of the discontinued LLVM Phabricator instance.

[clang-offload-bundler] HIP and OpenMP comaptibility for linking heterogeneous archive library
ClosedPublic

Authored by saiislam on Feb 28 2022, 10:46 PM.

Details

Summary

hip-openmp-compatible flag treats hip and hipv4 offload kinds
as compatible with openmp offload kind while extracting code objects
from a heterogenous archive library. Vice versa is also considered
compatible if hip code was compiled with -fgpu-rdc.

This flag only relaxes compatibility criteria on OffloadKind,
rest of the components like Triple and GPUArhc still needs to
be compatible.

Diff Detail

Event Timeline

saiislam created this revision.Feb 28 2022, 10:46 PM
saiislam requested review of this revision.Feb 28 2022, 10:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2022, 10:46 PM
yaxunl accepted this revision.Mar 1 2022, 6:28 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Mar 1 2022, 6:28 AM
This revision was landed with ongoing or failed builds.Mar 1 2022, 11:56 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 11:56 PM