Struct AAHD_Bank

Inheritance Relationships

Derived Types

Struct Documentation

struct AAHD_Bank

Host-device bank storage structure for device-transportable FLUDS.

Subclassed by opensn::AAHD_BoundaryBank, opensn::AAHD_DelayedLocalBank, opensn::AAHD_NonLocalBank

Public Functions

AAHD_Bank() = default
inline AAHD_Bank(std::size_t size)

Construct and allocate memory.

inline AAHD_Bank(std::size_t size, crb::Stream &stream)

Construct and allocate memory asynchronously.

AAHD_Bank(const AAHD_Bank &other)
AAHD_Bank &operator=(const AAHD_Bank &other)
AAHD_Bank(AAHD_Bank &&other) = default
AAHD_Bank &operator=(AAHD_Bank &&other) = default
void Clear()

Clear host and device storage.

void Clear(crb::Stream &stream)

Asynchronously clear of device storage.

void UploadToDevice()

Upload data from host to device.

void UploadToDevice(crb::Stream &stream)

Upload data from host to device asynchronously.

void DownloadToHost()

Download data from device to host.

void DownloadToHost(crb::Stream &stream)

Download data from device to host asynchronously.

Public Members

crb::HostVector<double> host_storage

Host storage for the bank.

crb::DeviceMemory<double> device_storage

Device storage for the bank.