logoalt Hacker News

Rust SIMD on the GPU

188 pointsby sagacityyesterday at 6:12 PM93 commentsview on HN

Comments

O3marchnativeyesterday at 8:37 PM

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

show 1 reply
6r17yesterday at 8:00 PM

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

show 5 replies
grokcodecyesterday at 10:54 PM

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++.

show 1 reply
camel-cdryesterday at 9:11 PM

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?

show 5 replies
nynxyesterday at 8:39 PM

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

LegNeatoyesterday at 7:41 PM

Author here, AMA.

show 5 replies
melodyogonnatoday at 1:21 AM

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.

frollogastontoday at 3:38 AM

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?

show 3 replies
dev_dan_2yesterday at 11:21 PM

Really exciting work and great write up, thanks a lot and all the best to your startup!

`core` instead of `std` is great too!

This will become useful in one of my sideproject where I use bitmaps to speed up pathfinding, exited to try it out!

efnxyesterday at 7:24 PM

Congrats to the Rust-GPU folks! Nice to see the good work flowing.

show 1 reply
nperez19yesterday at 10:31 PM

Love the pendantic mode setting on the website

show 2 replies
the__alchemistyesterday at 8:02 PM

Hey - this is probably off-topic/meta, but what is going on with the comments here? Is it bots?

show 2 replies
neonsunsettoday at 9:05 AM

[dead]

rust-langyesterday at 8:10 PM

[flagged]

donald-trumpyesterday at 9:16 PM

[flagged]

donald-trumpyesterday at 9:19 PM

[flagged]

lx-useryesterday at 8:07 PM

[flagged]

show 1 reply
guess__whoyesterday at 7:42 PM

[flagged]

show 5 replies
queisoyyesterday at 7:30 PM

[flagged]