Rust's Portable SIMD Now Runs on GPUs

Rust SIMD on the GPU

VectorWare announces support for Rust's portable SIMD (`core::simd`) on GPUs, mapping SIMD vectors directly to warp lanes. This enables the same SIMD code to run on CPUs and GPUs, with reductions and shuffles using warp primitives. The implementation leverages Rust's type system to encode a warp-level IR, offering zero-cost abstraction when vector width matches warp size. Challenges include unstable SIMD features and lane-width mismatches.

At VectorWare, we realized the GPU is just one more piece of vector hardware for portable SIMD to target.
  1. O3marchnative

    The author mentions Rust's portable SIMD library [0]. The only issue with portable SIMD is it's only available on nightly. I used it in my FFT crate, but we had to switch to the fearless_simd crate in order to get a portable SIMD solution that works on stable [1].

    [0] https://doc.rust-lang.org/std/simd/index.html

    [1] https://github.com/linebender/fearless_simd

  2. 6r17

    My heard hurts - i was stupid enough to think that SIMD was a CPU only thing - I don't understand why it would be ported to GPU - huge kudos to managing to surprise me

  3. grokcodec

    I would love to have an open source Rust SIMD library with the scope and maturity that

    https://github.com/google/highway brings to C++.

  4. camel-cdr

    I love how ever example of portable SIMD isn't portable.

    They specifies a constant SIMD width so it's non-portable. Well, not performance portable, but why are we using SIMD again?

  5. nynx

    Do you have examples of complex algorithms running on the gpu with rust with competative performance? Radix sort might be a good one to start with

  6. LegNeato

    Author here, AMA.

  7. melodyogonna

    Very interesting.

    But GPU programming gets complicated when you start doing 3d computation on very large data, will be interesting to see how tensor abstraction is built on top of this. Another point is that this is using fixed-width SIMD vectors; unless there is a way to compute this statically based on available GPU info, performance will always be left on the table.

  8. frollogaston

    I've noticed a lot of articles about SIMD on the HN front page. That's cool, but just wondering, is there some reason this is more in focus lately?

More from this day

2026-08-10