Live data from Hacker News

CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU

github.com

1–10 of 45 posts

Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU

#5
post #2

Very 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?

A lot of things happen at compile time, but you can execute arbitrary code in your kernel that executes at compile time, similar to generics, but with more flexibility. It's very natural to branch on a comptime config to select an algorithm.

Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU

#7
post #4
post #3

See also this overview for how it compares to other projects in the Rust and GPU ecosystem: https://rust-gpu.github.io/ecosystem/

Surprised this doesn't mention candle: https://github.com/huggingface/candle

I don't think that fits; that's a ML framework. The others in the link are general GPU frameworks.

Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU

#8
post #2

Very 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?

A lot of things happen at compile time, but you can execute arbitrary code in your kernel that executes at compile time, similar to generics, but with more flexibility. It's very natural to branch on a comptime config to select an algorithm.

[dead]
Post reply on HN