clang-offload-bundler should allow missing host entry when unbundling with option
--allow-missing-bundles specified.
This is for the use cases where users want to link device-only bundles with
bundles containing both device and host entries.
Paths
| Differential D142118
[HIP] Unbundler allows missing host entry ClosedPublic Authored by yaxunl on Jan 19 2023, 7:45 AM.
Details
Summary clang-offload-bundler should allow missing host entry when unbundling with option This is for the use cases where users want to link device-only bundles with
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 19 2023, 2:45 PM This revision was landed with ongoing or failed builds.Jan 19 2023, 7:14 PM Closed by commit rG3006cb2aa8d9: [HIP] Unbundler allows missing host entry (authored by yaxunl). · Explain Why This revision was automatically updated to reflect the committed changes. yaxunl marked an inline comment as done.
Revision Contents
Diff 490699 clang/lib/Driver/OffloadBundler.cpp
clang/test/Driver/clang-offload-bundler.c
|
Nit: My usual pet peeve - too many negations.
if (!(FoundHostBundle || BundlerConfig.HostInputIndex == ~0u || BundlerConfig.AllowMissingBundles))) is easier to understand, IMO.