You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if we couldn't already do a counter-based RNG, just like we do in CUDA.jl, but then with explicitly-managed state instead of the hackery we do over there (injecting at kernel launch, storing in shared memory, etc). I'll throw a robot at it.
Activity
maleadt commentedon Apr 24, 2026
You mean kernel-side
rand()calls?AntonOresten commentedon Apr 24, 2026
Yeah, I suppose that'd be the API. Then presumably the Tile IR instrinsics would take UInt RNG states.
maleadt commentedon Apr 24, 2026
I wonder if we couldn't already do a counter-based RNG, just like we do in CUDA.jl, but then with explicitly-managed state instead of the hackery we do over there (injecting at kernel launch, storing in shared memory, etc). I'll throw a robot at it.
AntonOresten commentedon Apr 24, 2026
Not sure I understand what you mean by explicitly managed, and how it'd get incremented. Interesting though. Worth a stab!
maleadt commentedon Apr 27, 2026
Let me know how the RNG works! It seems to perform really well, if anything.