[PATCH] D116668: libclc: Add clspv64 target

Kévin Petit via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 7 01:52:53 PST 2022


kpet added a comment.

I've done my prototyping assuming support for 64-bit integers but, unfortunately, some targets of interest don't support 64-bit yet so I will likely end up implementing support for both paths (64-bit integers and `uvec2`) in clspv. I've mapped the `clspv64` target to the version that doesn't require 64-bit integers for compatibility, to avoid carrying two builds of the library in clspv (each build adds about 2MB to the binary size). Looking at both implementations of `fma`, I'm not overly concerned about always using the version that doesn't require support for 64-bit integers for now. Both will be excruciatingly slow compared to hardware support anyway. Longer-term we can either assume support for 64-bit integers once more prevalent in the Vulkan ecosystem or introduce an additional variant of the library but I'd rather treat this as a future optimisation if that works for you.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116668/new/

https://reviews.llvm.org/D116668



More information about the llvm-commits mailing list