Celeritas
0.5.0-86+4a8eea4
|
#include "RngReseed.hh"
#include "corecel/Types.hh"
#include "corecel/sys/KernelLauncher.device.hh"
#include "detail/RngReseedExecutor.hh"
Functions | |
void | celeritas::reseed_rng (DeviceCRef< RngParamsData > const ¶ms, DeviceRef< RngStateData > const &state, StreamId stream, UniqueEventId event_id) |
Reinitialize the RNG states on device at the start of an event. More... | |
void celeritas::reseed_rng | ( | DeviceCRef< RngParamsData > const & | params, |
DeviceRef< RngStateData > const & | state, | ||
StreamId | stream, | ||
UniqueEventId | event_id | ||
) |
Reinitialize the RNG states on device at the start of an event.
Each thread's state is initialized using same seed and skipped ahead a different number of subsequences so the sequences on different threads will not have statistically correlated values.