6 ms·
I have always wanted to learn about GPU programming. Now might be the time.
by boyter 2y ago
I have always wanted to learn about GPU programming. Now might be the time.
- grishka 2y agoI couldn't resist, so here's the GPU hasher: https://gist.github.com/grishka/c1be1c035f39564debfd4b195bdfcac4 https://gist.github.com/grishka/c1be1c035f39564debfd4b195bdf... It gets around 232.5 MH/s on the M1 Max. There's also an optimization that exploits the fact that SHA256 is incremental, so the state for the common prefix could be pre-computed and then copied and only updated with the variable part. This yields around 30% performance boost.