Struct CUDASimulation::Singletons

Nested Relationships

This struct is a nested type of Class CUDASimulation.

Struct Documentation

struct Singletons

Struct containing references to the various singletons which may include CUDA code, and therefore can only be initialsed after the deferred arg parsing is completed.

Public Functions

inline explicit Singletons(const std::shared_ptr<detail::EnvironmentManager> &environment)

Public Members

detail::RandomManager rng

Resizes device random array during step()

detail::CUDAScatter scatter

Held here for tracking when to release cuda memory

std::shared_ptr<detail::EnvironmentManager> environment

Held here for tracking when to release cuda memory

detail::DeviceStrings strings

Provides copies of strings (agent/state names) on device

exception::DeviceExceptionManager exception

Provides buffers for device error checking