================

----------------
pvelesko wrote:

It should not. For four component hosts like x86_64-unknown-linux-gnu the entry 
is byte identical. Only three component hosts such as x86_64-unknown-linux or 
x86_64-apple-macosx15.0.0 change, and for those clang-offload-bundler rejected 
the old entry, so no such fatbin ever reached a runtime. The runtimes skip the 
host entry: CLR only requests hipv4-<isa> IDs (hipamd/src/hip_fatbin.cpp:281), 
comgr skips kinds other than hip, hipv4 and hcc 
(amd/comgr/src/comgr-metadata.cpp:830), and chipStar only takes entries 
starting with hip-spirv64 (tools/spirv-extractor/spirv-extractor.hh:325). The 
only check on the host entry's shape is checkOffloadBundleID in 
OffloadBundler::UnbundleFiles, which the new form passes. I also built a small 
HIP program with --offload-new-driver and --target=x86_64-unknown-linux: 
without this patch the link fails in clang-offload-bundler, with it the program 
runs correctly through both ROCm 5.7 on a gfx1034 card and chipStar.

Agreed that dropping the bundler is the better end state.


https://github.com/llvm/llvm-project/pull/216938
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to