‹ BackHN Continuity

Thread

Nvidia announces native GPU programming in Rust

970 points · 404 comments · nonmaskable

  1. dllu · · focus · HN ↗
    Since NVIDIA owns huggingface now and huggingface has the excellent Candle [1] crate for inference on Rust, this seems like a good step towards nice native Rust kernels.

    [1] <a href="https:&#x2F;&#x2F;github.com&#x2F;huggingface&#x2F;candle" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;huggingface&#x2F;candle

    1. the__alchemist · · focus · HN ↗
      I will give you an outsider&#x27;s perspective on an analogy in this case. It is easy to see Candle as a ML crate to use for neural networks in rust. I have used it, and it works well.

      The analogy is Tensorflow 5-10 years ago. It is popular, and there are lots of material on it. You quickly learn from talking to people that due to whims, a collection of reasons, people&#x27;s love of consensus that no one is recommending it; new people are not learning it. In this case, the Torch analogy is the Burn lib.

      1. laggui · · focus · HN ↗
        And to tie this back into GPU programming, Burn&#x27;s backends use CubeCL, which lets you write compute kernels in a Rust DSL using #[cube], with a JIT compiler and autotuning machinery. It targets CUDA, AMD, Metal, Vulkan and WebGPU.

        (disclosure: I am a contributor)

        1. LtdJorge · · focus · HN ↗
          It&#x27;s very cool. If Rust had comptime, apart from macros, it would be unmatched in capabilities.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.