Where is the Metal love…
Why would anyone love something born out of pure spite for industry standards?
CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
21–30 of 45 posts
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#22I'd recommend having a "gemm with a twist" [0] example in the README.md instead of having an element-wise example. It's pretty hard to evaluate how helpful this is for AI otherwise. [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.
The project feels very nice and it would be great to have more notes in the README on the excluded functionality to better scope its applicability in more advanced GPGPU scenarios.
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#23Earlier quoted context omitted.
For the same reason CUDA and ROCm are supported.
Apple is known to be not that great contributor to open source, unlike Nvidia, AMD, Intel.
Also, to whom do you have to thank LLVM exists in first place, and has not fizzled out as yet another university compiler research project?
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#24Earlier quoted context omitted.
It also compiles directly to MSL, it is just missing from the post title.
No it compiles indirectly through wgpu, which means it doesn’t have access to any Metal extensions not exposed by the wgpu interface.
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#25Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#26I'd recommend having a "gemm with a twist" [0] example in the README.md instead of having an element-wise example. It's pretty hard to evaluate how helpful this is for AI otherwise. [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.
Agreed! I was looking through the summation example https://github.com/tracel-ai/cubecl/blob/main/examples/sum_t... > and it seems like the primary focus is on the more traditional pre-2018 GPU programming without explicit warp-level operations, asynchrony, atomics, barriers, or countless tensor-core operations. The project feels very nice and it would be great to have more notes in the README on the excluded functio…
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#27Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#28Earlier quoted context omitted.
It also compiles directly to MSL, it is just missing from the post title.
No it compiles indirectly through wgpu, which means it doesn’t have access to any Metal extensions not exposed by the wgpu interface.
Generally wgpu is open to supporting any Metal extensions you need. There's usually an analogous extension in one of the other backends (e.g., Vulkan, DX12) anyway.
Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#29Re: CubeCL: GPU Kernels in Rust for CUDA, ROCm, and WGPU
#30I'd recommend having a "gemm with a twist" [0] example in the README.md instead of having an element-wise example. It's pretty hard to evaluate how helpful this is for AI otherwise. [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.