alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::rand::engine Namespace Reference

The random number generator engine specifics. More...

Namespaces

 cpu
 
 trait
 The random number generator engine trait.
 
 uniform_cuda_hip
 

Classes

class  PhiloxBaseCommon
 
class  PhiloxConstants
 
struct  PhiloxParams
 
class  PhiloxSingle
 
class  PhiloxStateless
 
struct  PhiloxStatelessKeyedBase
 
struct  PhiloxStateSingle
 
struct  PhiloxStateVector
 
class  PhiloxVector
 

Functions

template<typename TRand >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto createDefault (TRand const &rand, std::uint32_t const &seed=0, std::uint32_t const &subsequence=0, std::uint32_t const &offset=0)
 

Detailed Description

The random number generator engine specifics.

Function Documentation

◆ createDefault()

template<typename TRand >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::rand::engine::createDefault ( TRand const &  rand,
std::uint32_t const &  seed = 0,
std::uint32_t const &  subsequence = 0,
std::uint32_t const &  offset = 0 
)
Returns
A default random number generator engine. Its type is guaranteed to be trivially copyable. Except HIP accelerator for HIP versions below 5.2 as its internal state was not trivially copyable. The limitation was discussed in PR #1778.

Definition at line 90 of file Traits.hpp.