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
#[kernel]#[allow(improper_ctypes_definitions, clippy::missing_safety_doc)]pubunsafefn find_vanity_private_key(a:&[u8]){let idx = thread::index_1d()asusize;letmut rng_seed:u64 = 42;// TODO: make this unique for each thread?letmut num_iterations:u64 = 0;for _ in0..10000{// generate random input for seedletmut rng = Xoroshiro128StarStar::seed_from_u64(rng_seed);// if i change this to MockXoroshiro128StarStar it works fineletmut input = [0u8;32];
rng.fill_bytes(&mut input);
...
The path-tracer example uses DefaultRand, which uses Xorohiro128StarStar. The render kernel receives it as a parameter, which the host side provides when launching. Hope that helps.
I'll report back if I'm able to reproduce. I moved to XorShiftRng for now which doesn't seem to have this issue. Not sure if it is related to resources (too many threads/blocks).
Activity
jorge-ortega commentedon Apr 24, 2025
Hi @brandonros,
Thanks for the report. I'm not able to reproduce this atm. Can you also share how you launch from the host side?
My kernel currently looks like this:
And I launch like this:
The path-tracer example uses
DefaultRand, which usesXorohiro128StarStar. The render kernel receives it as a parameter, which the host side provides when launching. Hope that helps.brandonros commentedon Apr 26, 2025
I'll report back if I'm able to reproduce. I moved to
XorShiftRngfor now which doesn't seem to have this issue. Not sure if it is related to resources (too many threads/blocks).I had the problem trying to launch it with
custand https://github.com/coreylowman/cudarc but I do not want to waste your time tracking it down.Would a compiled output like
.llhelp at all?brandonros commentedon Apr 27, 2025
brandonros/vanity-miner-rs@424ee9d
if you switch Xoroshiro128StarStar and XorShiftRng on this branch it should reproduce
brandonros commentedon Apr 29, 2025
rng-illegal-address.ptx.zip
[-]Xoroshiro128StarStar::seed_from_u64 causes Error: IllegalAddress failure[/-][+]rand_xoshiro crate = runtime error[/+]brandonros commentedon May 26, 2025
not sure if #217 fixed it 100% but no longer reproducible
LegNeato commentedon May 26, 2025
Sweet!