Celeritas
0.5.0-86+4a8eea4
|
#include "corecel/Assert.hh"
#include "corecel/Macros.hh"
#include "corecel/Types.hh"
#include "celeritas/Types.hh"
#include "RngData.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 (HostCRef< RngParamsData > const &, HostRef< RngStateData > const &, StreamId, UniqueEventId) |
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.