HiĀ Aurelien,
On 2026-11-28 08:22, Aurelien Jarno wrote:
amd-device-libs-21 contains LLVM IR bytecode, which does not depends on
the host architecture. Therefore the content of the package on all
architectures is the same for a given LLVM compiler version.
I therefore believe this package can be switched to arch:all.
An LLM review of amd-device-libs-23 noted the same [1], with the most
convincing argument to me being:
The comparable libclc-23, which also ships amdgcn bitcode, is
Architecture: all with Multi-Arch: foreign (apt-cache).
There was a similar discussion a long time ago when the device-libs were
first packaged. A cursory inspection of the binaries showed that the
bitcode files had different hashes on different platforms. We never dug
deeper to understand if the differences are meaningful.
I've opened an issue upstream to ask for clarification [2]. The LLVM
developers I've spoke to privately have had cautious words about the
suggestion, but did not deny that it could work. In the absence of a
specific reason otherwise, I would be tempted to follow the lead of the
Debian LLVM maintainers.
With that said, given that LLVM 21 and LLVM 22 have bugs filed for their
removal, it's likely that amd-device-libs-21 will be short-lived. The
actual switch to arch: all would probably happen for amd-device-libs-23.
Sincerely,
Cory Bloor
[1]: https://dfsg-new-queue.debian.org/reviews/amd-device-libs-23
[2]: https://github.com/ROCm/llvm-project/issues/5606