|
Celeritas 0.7.0-dev.195+develop.9f96e13e6
|
#include <random>#include "corecel/Config.hh"#include "corecel/DeviceRuntimeApi.hh"#include "corecel/Assert.hh"#include "corecel/Macros.hh"#include "corecel/Types.hh"#include "corecel/data/Collection.hh"#include "corecel/sys/Device.hh"#include "detail/MockRand.hh"
Classes | |
| struct | celeritas::CuHipRngParamsData< W, M > |
| Properties of the global random number generator. More... | |
| struct | celeritas::CuHipRngInitializer |
| Initialize an RNG. More... | |
| struct | celeritas::CuHipRngStateData< W, M > |
| RNG state data. More... | |
Macros | |
| #define | CELER_RNG_PREFIX(TOK) mock##TOK |
| Add a prefix "hip", "cu", or "mock" to a code token. | |
Typedefs | |
| using | celeritas::mockrandState_t = detail::MockRandState |
| using | celeritas::CuHipRngThreadState = mockrandState_t |
| RNG state type: curandState_t, hiprandState_t, mockrandState_t. | |
Functions | |
| template<MemSpace M> | |
| void | celeritas::resize (CuHipRngStateData< Ownership::value, M > *state, HostCRef< CuHipRngParamsData > const ¶ms, StreamId stream, size_type size) |
| Resize and initialize with the seed stored in params. | |
| #define CELER_RNG_PREFIX | ( | TOK | ) | mock##TOK |
Add a prefix "hip", "cu", or "mock" to a code token.
This is used to toggle between the different RNG options.