Open AnastasiaStulova opened 1 year ago
this has nothing to do with upstream, besides 22.04 is now on llvm 15
It would be nice to merge SPIRV-LLVM-Translator in llvm, as it happened with libclc. It would solve many integration issues.
@FabioPedretti problem here that LLVM community has once rejected the translator as in LLVM spirit it's better to target the appropriate IR directly out of the frontend. But there is actually another project https://github.com/KhronosGroup/LLVM-SPIRV-Backend that is being implemented in LLVM itself (don't be confused by the standalone repo I've posted, the project is being unstreamed). Reasonings, design etc can be found here: https://llvm.org/devmtg/2022-11/slides/TechTalk16-SPIR-V-Backend-in-LLVM.pdf
I am not sure if #1467 has an actual resolution other than building translator version manually. However it seems that in Ubuntu's
apt
llvm-spirv
version being packaged is not aligned with LLVM version. On Ubuntu 22.04 apt installsllvm 14
andllvm-spirv 13
. This is super inconvenient and because there is no diagnostic provided about version misaligned inllvm-spirv
as #1410 reports, it is really tricky to get the problem.I am happy to forward this problem elsewhere if needed but perhaps it is not clear to the packaging project that
llvm-spirv
needs to align with LLVM. Maybe some docs could be improved somewhere to clarify that?