|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_ActuatorDeviceBuffers.H>


Public Member Functions | |
| void | upload () |
| void | download_async (std::size_t n) |
| T * | data () |
Public Attributes | |
| std::vector< T > | host |
| what the next upload() sends More... | |
| amrex::Gpu::PinnedVector< T > | pinned |
| staging, and the host side of download_async() More... | |
| amrex::Gpu::DeviceVector< T > | device |
An array filled on the host and read by the kernels: the host side is a std::vector (clear() keeps its capacity), copied through pinned memory to the device with one asynchronous copy. The pinned and device sides only grow. A call that uploads must synchronize the stream before it returns, so that the next call may refill the host side.
|
inline |
Referenced by erf_actuator::add_scaled_kernels(), erf_actuator::sample_velocity_local(), and erf_actuator::spread_partial_norms().

|
inline |
Copy the first n device values to pinned, asynchronously: they are there after the next stream synchronization.
Referenced by erf_actuator::sample_velocity_local(), and erf_actuator::spread_partial_norms().


|
inline |
Copy host to the device, asynchronously.
Referenced by erf_actuator::add_scaled_kernels(), erf_actuator::sample_velocity_local(), and erf_actuator::spread_partial_norms().


| amrex::Gpu::DeviceVector<T> erf_actuator::StagedBuffer< T >::device |
| std::vector<T> erf_actuator::StagedBuffer< T >::host |
what the next upload() sends
Referenced by erf_actuator::add_scaled_kernels(), erf_actuator::sample_velocity_local(), erf_actuator::spread_partial_norms(), and erf_actuator::StagedBuffer< T >::upload().
| amrex::Gpu::PinnedVector<T> erf_actuator::StagedBuffer< T >::pinned |
staging, and the host side of download_async()
Referenced by erf_actuator::StagedBuffer< T >::download_async(), erf_actuator::sample_velocity_local(), erf_actuator::spread_partial_norms(), and erf_actuator::StagedBuffer< T >::upload().