Hacker GitHub

← All repos

google/clspv

View on GitHub ↗ ★ 734 LLVM

Clspv is a compiler for OpenCL C to Vulkan compute shaders

11 mentions on Hacker News by 8 people: 1 story, 10 comments · first 2019-12-26 · latest 2025-10-26

Mentions per year 11 mentions · busiest year 2021 (3)
20082026
  1. …shader compiler), you can run CUDA code in the browser!" ¹ https://github.com/CHIP-SPV/chipStar/ ² https://github.com/google/clspv/ ³ https://dawn.googlesource.com/dawn/+/refs/heads/main/src/tin...
  2. See https://github.com/google/clspv for an OpenCL implementation on Vulkan Compute. There are plenty of quirks involved because the two standards use different varieties of SPIR-V ("kernels" vs. "shaders") and provide different guarantees…
    comment by zozbot234 · 2024-01-10 · in Vcc – The Vulkan Clang Compiler
  3. …for numerical compute (as typified by both OpenCL and SYCL) are challenging, you can look at clspv https://github.com/google/clspv project for the nitty gritty details. The lowest-effort path so far is most likely via some combination of…
    comment by zozbot234 · 2023-12-17 · in AMD's CDNA 3 Compute Architecture
  4. …because of Vulkan API limitations, clvk is a thing. The list of limitations of that approach is at https://github.com/google/clspv/blob/master/docs/OpenCLCOnVu... tldr: Vulkan and OpenCL SPIR-V dialects are different, and the former has…
    comment by my123 · 2022-01-22 · in WSL with CUDA support
  5. …to implementing a compliant OpenCL implementation on top of. There are also some other limitatons: https://github.com/google/clspv/blob/master/docs/OpenCLCOnVu... .
  6. These are not proper pointers, see: https://github.com/google/clspv/blob/master/docs/OpenCLCOnVu... > Pointers are an abstract type - they have no known compile-time size. Using a pointer type as the argument to the sizeof() operator will…
  7. Some people are working on being able to run OpenCL kernels on Vulkan: https://github.com/google/clspv
  8. …application on Android, thanks to a project from Google / Codeplay and other contributors https://github.com/google/clspv . SPIR-V can't represent all of OpenCL, but maybe enough for most people's use cases.
  9. …up an getting vendors to support the features that would make OpenCL competitive with CUDA. [1] https://github.com/google/clspv/blob/master/docs/OpenCLCOnVu...
    comment by elbows · 2020-04-27 · in Khronos Announces OpenCL 3.0
  10. Some googlers are working on OpenCL source to Vulkan-profile-SPIR-V though: https://github.com/google/clspv
    comment by floatboth · 2019-12-26 · in Implementing WebGPU in Gecko