-
Notifications
You must be signed in to change notification settings - Fork 180
rand_xoshiro crate = runtime error #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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: #[kernel]
#[allow(improper_ctypes_definitions, clippy::missing_safety_doc)]
pub unsafe fn rng_test() {
let rng_seed: u64 = 42;
for _ in 0..10000 {
let mut rng = Xoroshiro128StarStar::seed_from_u64(rng_seed);
let mut input = [0u8; 32];
rng.fill_bytes(&mut input);
}
} And I launch like this: unsafe {
launch!(
module.rng_test<<<32, 32, 0, stream>>>()
)?;
} The path-tracer example uses |
I'll report back if I'm able to reproduce. I moved to I had the problem trying to launch it with Would a compiled output like |
brandonros/ed25519-vanity-rs@424ee9d if you switch Xoroshiro128StarStar and XorShiftRng on this branch it should reproduce |
Reproduction:
The text was updated successfully, but these errors were encountered: