Celeritas  0.5.0-56+6b053cd
Classes | Macros | Typedefs | Functions
CuHipRngData.hh File Reference
#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"
This graph shows which files directly or indirectly include this file:

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. More...
 

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 &params, StreamId stream, size_type size)
 Resize and initialize with the seed stored in params.
 

Macro Definition Documentation

◆ CELER_RNG_PREFIX

#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.