KhronosGroup / SPIRV-LLVM-Translator

A tool and a library for bi-directional translation between SPIR-V and LLVM IR
Other
485 stars 218 forks source link

Ubuntu packaging misaligned with LLVM version #1751

Open AnastasiaStulova opened 1 year ago

AnastasiaStulova commented 1 year ago

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 installs llvm 14 and llvm-spirv 13. This is super inconvenient and because there is no diagnostic provided about version misaligned in llvm-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?

tjaalton commented 1 year ago

this has nothing to do with upstream, besides 22.04 is now on llvm 15

FabioPedretti commented 11 months ago

It would be nice to merge SPIRV-LLVM-Translator in llvm, as it happened with libclc. It would solve many integration issues.

MrSidims commented 11 months ago

@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