Hacker News new | ask | show | jobs
by kadajett2 729 days ago
Just got to 11 zeros with some beginner rust code! Gonna keep it running for a while to see if I can get higher than 24, but this was a ton of fun! And it was my first time doing parallel rust code!

I couldn't get wgsl to work properly, as it would need to have a sha256 implementation, and that's a bit heavy for a buzzed coding session. So, I used the simd commands, and that got me up to around 7mh/s on the m1, and a whole lot more on my desktop.

I will share the code once I get all the other optimizations I want in!

1 comments

You can probably get a 2x speedup by shortening the string so that it fits in one block.
Using simd properly(I think) and lowering the nonce text, I went from that 7MH/s to 10MH/s

I have a bunch of other ideas to get me to my goal of 20, but I am happy to let this run for a bit! Thanks for the suggestion!

Ah, nice! I will shorten it after I finish the simd addition! I didn't even think of that. I was just overcomplicating my thread partitions to avoid collisions.