Where is the Metal love…
CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
11–20 of 45 posts
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#12Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#13Where is the Metal love…
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#14Very interesting project! I am wondering how it compare against OpenCL, which I think adopts the same fundamental idea (write once, run everywhere)? Is it about CUbeCL's internal optimization for Rust that happens at compile time?
Given that it can target WGPU I'm really wondering why OpenCL isn't included as a backend. One of my biggest complaints about GPGPU stuff is that so many of the solutions are GPU only, and often only target the vendor compute APIs (CUDA, ROCm) which have much narrower ecosystem support (versus an older core vulkan profile for example).
It's desirable to be able to target CPU for compatibility, debugging, and also because it can be nice to have a single solution for parallelizing all your data heavy work. The latter reduces mental overhead and permits more code reuse.
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#15Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#16Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#17Very interesting project! I am wondering how it compare against OpenCL, which I think adopts the same fundamental idea (write once, run everywhere)? Is it about CUbeCL's internal optimization for Rust that happens at compile time?
This appears to be single source which would make it similar to SYCL. Given that it can target WGPU I'm really wondering why OpenCL isn't included as a backend. One of my biggest complaints about GPGPU stuff is that so many of the solutions are GPU only, and often only target the vendor compute APIs (CUDA, ROCm) which have much narrower ecosystem support (versus an older core vulkan profile for example). It's desirab…
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#18In Halide, the concept was great, yet the problems in kernel development were moved to the side of "scheduling", i.e. determining tiling/vectorization/parallellization for the kernel runs.
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#19Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#20[0] For example, gemm but the lhs is in fp8 e4m3 and rhs is in bf16 and we want fp32 accumulation, output to bf16 after applying GELU.