Celeritas  0.5.0-56+6b053cd
Functions
RngReseed.hh File Reference
#include "corecel/Assert.hh"
#include "corecel/Macros.hh"
#include "corecel/Types.hh"
#include "celeritas/Types.hh"
#include "RngData.hh"
This graph shows which files directly or indirectly include this file:

Functions

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. More...
 
void celeritas::reseed_rng (HostCRef< RngParamsData > const &, HostRef< RngStateData > const &, StreamId, UniqueEventId)
 

Function Documentation

◆ reseed_rng()

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.