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
20082026
-
…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...
comment by CharlesW · 2025-01-07 · in Show HN: HipScript – Run CUDA in the browser with WebAssembly and WebGPU -
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 -
…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 -
…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 -
…to implementing a compliant OpenCL implementation on top of. There are also some other limitatons: https://github.com/google/clspv/blob/master/docs/OpenCLCOnVu... .
comment by my123 · 2021-11-22 · in Low overhead C++ interface for Apple's Metal API -
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…
comment by my123 · 2021-11-16 · in Blender 3.0 takes support for AMD GPUs to the next level -
Some people are working on being able to run OpenCL kernels on Vulkan: https://github.com/google/clspv
comment by TazeTSchnitzel · 2021-01-29 · in C-for-Metal: High Performance SIMD Programming on Intel GPUs -
…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.
comment by jgavris · 2020-09-28 · in VkFFT – Vulkan Fast Fourier Transform Library -
…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 -
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