Earlier quoted context omitted.
Using the naming from one of the existing API would put too much bias towards that API. It started as a WebGPU project early on, but some features are not present so mixing terms wasn't ideal. We're also working on extending CubeCL to CPU, so we want terms not only tied to the GPU word.
Why unit instead of point? Unit, plane (as vs train), and cube? Or point, plane, cube (1d, 2d, 3d)?
Multiplatform Matrix Multiplication Kernels
11–20 of 32 posts
Re: Multiplatform Matrix Multiplication Kernels
#12If you have a measure of correctness, and a measure of performance. Is there a maximum value of correctness per some unit of processing that exists below a full matrix multiply
Obviously it can be done with precision, since that is what floating point is. But is there anything where you can save x% of computation and have fewer than x% incorrect values in a matrix multiplications?
Gradient descent wouldn't really care about a few (Reliably) dud values.
Re: Multiplatform Matrix Multiplication Kernels
#13Re: Multiplatform Matrix Multiplication Kernels
#14Re: Multiplatform Matrix Multiplication Kernels
#15Earlier quoted context omitted.
Thread, group, workgroup. There you go you've hit basically two of 3 completely (AMD and Vulkan) and are close enough to CUDA that people would get it. I have no idea what a plane connotes and a cube literally gives a distinct enough picture from block that I will be continuously reminding myself of the mapping. What you did was pointless - you assigned new words to objects that you don't own and now your conceptual…
Well we can agree to disagree, CubeCL also has the concept of instruction parallelism, which would be used to target simd instructions on CPU. Our algorithms are normally flexible on both the plane size and the line size, adapting to the hardware with comptime logique. You are free to dislike the naming, but imo a mix of multiple APIs is worse than something new.
Just commenting to share, personally I have no naming preference but the hierarchal abstractions in general are incredibly useful.
Re: Multiplatform Matrix Multiplication Kernels
#16Has there been much research into slightly flawed matrix multiplications? If you have a measure of correctness, and a measure of performance. Is there a maximum value of correctness per some unit of processing that exists below a full matrix multiply Obviously it can be done with precision, since that is what floating point is. But is there anything where you can save x% of computation and have fewer than x% incorrec…
Re: Multiplatform Matrix Multiplication Kernels
#17Earlier quoted context omitted.
Well we can agree to disagree, CubeCL also has the concept of instruction parallelism, which would be used to target simd instructions on CPU. Our algorithms are normally flexible on both the plane size and the line size, adapting to the hardware with comptime logique. You are free to dislike the naming, but imo a mix of multiple APIs is worse than something new.
> Our algorithms are normally flexible on both the plane size and the line size Congrats - I have no idea what this means lol.
It does come with some mental overhead, but let’s be honest, there’s no objectively “good” choice here without introducing bias toward a specific vendor API.
Learning the core concepts takes effort, but if CubeCL is useful for your work, it’s definitely worth it.
Re: Multiplatform Matrix Multiplication Kernels
#18Earlier quoted context omitted.
Using the naming from one of the existing API would put too much bias towards that API. It started as a WebGPU project early on, but some features are not present so mixing terms wasn't ideal. We're also working on extending CubeCL to CPU, so we want terms not only tied to the GPU word.
Why unit instead of point? Unit, plane (as vs train), and cube? Or point, plane, cube (1d, 2d, 3d)?
Re: Multiplatform Matrix Multiplication Kernels
#19Re: Multiplatform Matrix Multiplication Kernels
#20I had bet that matmult would be in transformer-optimized hardware costing a fraction of GPUs first class in torch 2 years ago with no reason to use GPUs any more. Wrong.
It is... it's in GPUs lol
> first class in torch
It is
> costing a fraction of GPUs
Why would anyone give you this for cheaper than GPUs lol?