Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::CuHipRngParams Class Referencefinal

Manage random number generation. More...

#include <CuHipRngParams.hh>

Inheritance diagram for celeritas::CuHipRngParams:
Inheritance graph
[legend]

Public Member Functions

 CuHipRngParams (unsigned int seed)
 Construct with a seed.
 
HostRef consthost_ref () const final
 Access RNG properties for constructing RNG state.
 
DeviceRef constdevice_ref () const final
 Access data on device.
 
- Public Member Functions inherited from celeritas::ParamsDataInterface< CuHipRngParamsData >
CuHipRngParamsData< Ownership::const_reference, M > const & ref () const
 
CuHipRngParamsData< Ownership::const_reference, M > const & ref () const
 Dispatch a "ref" call to host or device data.
 

Additional Inherited Members

- Public Types inherited from celeritas::ParamsDataInterface< CuHipRngParamsData >
using HostRef = HostCRef< CuHipRngParamsData >
 
using DeviceRef = DeviceCRef< CuHipRngParamsData >
 
- Protected Member Functions inherited from celeritas::ParamsDataInterface< CuHipRngParamsData >
 CELER_DEFAULT_COPY_MOVE (ParamsDataInterface)
 

Detailed Description

Manage random number generation.

Currently this just constructs a local seed number but should be extended to handle RNG setup across multiple MPI processes.

Member Function Documentation

◆ device_ref()

DeviceRef const & celeritas::CuHipRngParams::device_ref ( ) const
inlinefinalvirtual

Access data on device.

Implements celeritas::ParamsDataInterface< CuHipRngParamsData >.

◆ host_ref()

HostRef const & celeritas::CuHipRngParams::host_ref ( ) const
inlinefinalvirtual

Access RNG properties for constructing RNG state.

Implements celeritas::ParamsDataInterface< CuHipRngParamsData >.


The documentation for this class was generated from the following files: