iree VS cutlass

Compare iree vs cutlass and see what are their differences.

iree

A retargetable MLIR-based machine learning compiler and runtime toolkit. (by iree-org)

cutlass

CUDA Templates for Linear Algebra Subroutines (by NVIDIA)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
iree cutlass
10 16
2,379 4,522
4.4% 6.1%
10.0 8.8
5 days ago 7 days ago
C++ C++
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

iree

Posts with mentions or reviews of iree. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-04.
  • Calyx, a Compiler Infrastructure for Accelerator Generators
    2 projects | news.ycombinator.com | 4 Mar 2024
    How is this different than the mlir infrastructure of llvm and xla implemented in https://iree.dev/?
  • Running pre-trained ML models in Godot
    2 projects | dev.to | 18 Jan 2024
    So I have been developing this GDExtension called iree.gd. It is mission to embed IREE, another cool project that compiles and runs ML models, into Godot. It took me quite a while, but finally It has reached alpha. Hope you guys could check it out the sample.
  • Nvidia H200 Tensor Core GPU
    5 projects | news.ycombinator.com | 13 Nov 2023
    I am going to paste a cousin comment:

    StableHLO[1] is an interesting project that might help AMD here:

    > Our goal is to simplify and accelerate ML development by creating more interoperability between various ML frameworks (such as TensorFlow, JAX and PyTorch) and ML compilers (such as XLA and IREE).

    From there, their goal would most likely be to work with XLA/OpenXLA teams on XLA[3] and IREE[2] to make RoCM a better backend.

    [1] https://github.com/openxla/stablehlo

    [2] https://github.com/openxla/iree

    [3] https://www.tensorflow.org/xla

  • Nvidia reveals new A.I. chip, says costs of running LLMs will drop significantly
    3 projects | news.ycombinator.com | 9 Aug 2023
    I want to promote that the Google project https://github.com/openxla/iree exists and IREE acts as a way to turn Tensorflow, Pytorch, and MLIR workflows to compute on cpu, vulkan compute, cuda, rocm, metal and others.

    https://github.com/RechieKho/IREE.gd -- RechieKho and I collaborate on making this work for Godot Engine, but IREE.gd is at a proof of concept stage.

  • VkFFT: Vulkan/CUDA/Hip/OpenCL/Level Zero/Metal Fast Fourier Transform Library
    7 projects | news.ycombinator.com | 2 Aug 2023
    To a first approximation, Kompute[1] is that. It doesn't seem to be catching on, I'm seeing more buzz around WebGPU solutions, including wonnx[2] and more hand-rolled approaches, and IREE[3], the latter of which has a Vulkan back-end.

    [1]: https://kompute.cc/

    [2]: https://github.com/webonnx/wonnx

    [3]: https://github.com/openxla/iree

  • Requiem for Piet-GPU-Hal
    3 projects | news.ycombinator.com | 8 Jan 2023
    In the ML section you mentioned Kompute and MediaPipe. Have you seen IREE? It has a Vulkan-like compute-only HAL. https://github.com/iree-org/iree
  • PyTorch on Apple M1 Faster Than TensorFlow-Metal
    4 projects | news.ycombinator.com | 22 Feb 2022
    Exactly the kind of things we've been talking about! A fun and challenging tradeoff space and it's always great to connect with others!

    Ahh linebender - I hadn't connected the name with your github account - piet-gpu is great, as is your blog! Also, for anyone skimming the comments this talk is fantastic and I share it with anyone new to the GPGPU space: https://www.youtube.com/watch?v=DZRn_jNZjbw

    We waffled a bit with the API granularity in the beginning and it's taken building out most of the rest of the project in order to nail it down (the big refactor still pending). The biggest issue is that in simple models we'll end up emitting a single command buffer but anything with control flow (that we can't predicate), data dependencies (sparsity, thresholding, etc), or CPU work in the middle (IO, custom user code, etc) can break that up. We also hit cases where we need to flush work - such as if we run out of usable memory and need to defragment or resize our pools. We want to be able to (but aren't yet) reuse command buffers (CUDA graphs, etc) and that requires being able to both cache them and recreate them on demand (if we resize a pool we have to invalidate all cached command buffers using those resources, as update-after-bind is not universally available and if shapes change there's big ripples). Since most models beyond simple vision ones are ~thousands of dispatches it also lets us better integrate into multithreaded applications like you mention as apps can record commands for themselves in parallel without synchronization. It still would be nice to have certain operations inlined, though, and for that we want to allow custom hooks that we call into to add commands to the command buffers, turning things inside-out to make small amounts of work like image transformations in-between model layers possible (I'm really hoping we can avoid modeling the entire graphics pipeline in the compiler and this would be a way around that :). We haven't yet started on scheduling across queues but that's also very interesting especially in multi-GPU cases (with x4/x8 GPUs being common in datacenters, or NUMA CPU clusters that can be scheduled similarly).

    We're fully open source (https://github.com/google/iree) but have been operating quietly while we get the groundwork in place - it's taken some time but now we're finally starting to stumble into success on certain problem categories (like transformers as in the post). Right now it's mostly just organized as a systems/compiler nerd honeypot for people looking for an ML/number crunching framework that (purposefully) doesn't look like any of the existing ones :)

    Would love to chat more - even if just to commiserate over GPU APIs and such - everyone is welcome on the discord where a bunch of us nerds have gathered or we could grab virtual coffee (realized just now that this hn acct is ancient - I'm [email protected] :)

  • WONNX: Deep Learning on WebGPU using the ONNX format.
    3 projects | /r/rust | 10 Jan 2022
    If you're interested in really pushing yourself, perhaps you can look at https://github.com/google/iree?
  • GPU computing on Apple Silicon
    7 projects | /r/rust | 30 Nov 2021
    This doesn't answer your question, but it would be cool if we had something based on MLIR for GPU compute. From what I've read, it closes the gap between NVIDIA and other GPU vendors a lot more than pure compute shaders. e.g. ONNX-MLIR, PlaidML, and IREE.

cutlass

Posts with mentions or reviews of cutlass. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-23.
  • Optimization Techniques for GPU Programming [pdf]
    1 project | news.ycombinator.com | 9 Aug 2023
    I would recommend the course from Oxford (https://people.maths.ox.ac.uk/gilesm/cuda/). Also explore the tutorial section of cutlass (https://github.com/NVIDIA/cutlass/blob/main/media/docs/cute/...) if you want to learn more about high performance gemm.
  • Want to understand INT8 better
    1 project | /r/CUDA | 3 May 2023
    The latter (and I guess you were asking about this one) is designed to accelerate NN inference in reduced precision. It is possible to use Tensor Cores for you own purposes, mainly through CUTLASS. But because Tensor Cores are designed to execute matrix multiplications, it can be hard to adapt your problem to them. The performance with them is insane (IIRC 32x the performance of the INT32 pipeline), but only for matrix multiplication…
  • How do I deal with tensor core and cuda core with different precision?
    1 project | /r/CUDA | 1 Apr 2023
    If you want to learn about controlling Tensor Cores, the main way is through the CUTLASS library, that wraps the complexity of Tensor Cores into higher level abstractions. You can also look for mma/wmma instructions in the PTX specification, or for the WMMA API in CUDA.
  • AI’s compute fragmentation: what matrix multiplication teaches us
    4 projects | news.ycombinator.com | 23 Mar 2023
    > we used tensor cores and managed to get back fp32 accuracy with 3 rounds of the things

    Hey are you referring to 3xTF32 (https://github.com/NVIDIA/cutlass/tree/master/examples/28_am...)? IMO this is a perfect example where proper abstraction could save engineers non-trivial amount of time - imagine a compiler stack which allows 3xTF32 as a normal dtype and subsequent analysis compatible with this special dtype :-)

  • With LLVM and MLIR, is manual cuda optimizing still important?
    2 projects | /r/CUDA | 15 Mar 2023
  • CUTLASS 3.0 is now available
    1 project | news.ycombinator.com | 24 Jan 2023
  • How to Optimize a CUDA Matmul Kernel for CuBLAS-Like Performance: A Worklog
    5 projects | news.ycombinator.com | 4 Jan 2023
    This is a great post for people who are new to optimizing GPU code.

    It is interesting to see that the author got this far without interchanging the innermost loop over k to the outermost loop, as is done in CUTLASS (https://github.com/NVIDIA/cutlass).

    As you can see in this blog post the code ends up with a lot of compile-time constants (e.g. BLOCKSIZE, BM, BN, BK, TM, TN) one way to optimize this code further is to use an auto-tuner to find the optimal value for all of these parameters for your GPU and problem size, for example Kernel Tuner (https://github.com/KernelTuner/kernel_tuner)

  • pytorch example to actually see anything near 83 TFLOP/s on a RTX 4090?
    2 projects | /r/pytorch | 16 Dec 2022
    Some examples here have a benchmark: https://github.com/NVIDIA/cutlass/blob/master/examples/24_gemm_grouped/gemm_grouped.cu
  • Create a bare CMake for Nvidia CUTLASS
    1 project | /r/cmake | 27 Nov 2022
    I would like to make a minimum CMakeLists to use the CUDA CUTLASS library in another project. The build system is CMake, however I have little experience with CMake.
  • [D] What are some good resources to learn CUDA programming?
    3 projects | /r/MachineLearning | 22 Jul 2022
    If you already know some C++, the Nvidia devblog is a great resource. Going further, Cub and Cutlass provide examples of efficient implementations for key operations at all hardware levels. Finally, this is more anecdotal but I always start my lectures on Cuda programming with the pictures in this doc page, to provide some intuition on the different memory layers that you can leverage to speed up a program. In any case, good luck :-)

What are some alternatives?

When comparing iree and cutlass you can also consider the following projects:

onnx-mlir - Representation and Reference Lowering of ONNX Models in MLIR Compiler Infrastructure

TensorRT - PyTorch/TorchScript/FX compiler for NVIDIA GPUs using TensorRT

torch-mlir - The Torch-MLIR project aims to provide first class support from the PyTorch ecosystem to the MLIR ecosystem.

GPU-Puzzles - Solve puzzles. Learn CUDA.

onnx - Open standard for machine learning interoperability

triton - Development repository for the Triton language and compiler

wonnx - A WebGPU-accelerated ONNX inference run-time written 100% in Rust, ready for native and the web

Chess_BinaryNeuralNetwork - Training and Code Emitting Library for Binary Neural Networks

plaidml - PlaidML is a framework for making deep learning work everywhere.

Open3D - Open3D: A Modern Library for 3D Data Processing

rust-gpu - 🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧

shark-samples