Hi Petter,

On 2025-01-30 15:45, Petter Reinholdtsen wrote:
Why can it not use just clang, aka clang-19 in Trixie at the moment?

For one, the clang compiler needs a copy of rocm-device-libs to build HIP sources. The result of building rocm-device-libs is a collection of LLVM IR files, and clang does not promise that LLVM IR will be compatible between major versions. That is why src:rocm-device-libs produces rocm-device-libs-17 when compiled with clang-17. The rocm-device-libs-17 package cannot safely be used by clang-19 for compiling HIP programs.

We could probably compile src:rocm-device-libs with clang-19 to produce rocm-device-libs-19. I've never tried doing that and upstream probably won't promise that it will work, but I don't know of any reason why it wouldn't.

And if it only work with clang-19, why search instead of just picking
the one clang-17 it need?  I do not know the answer to these questions,
but suspect it might provide insights useful for deciding what cmake
should do.

Agreed.

Sincerely,
Cory Bloor

Reply via email to