CellGPU
0.8.0
GPU-accelerated simulations of cells
|
A mechanism for accessing data in GPUArray objects's. More...
#include <gpuarray.h>
Public Member Functions | |
ArrayHandle (const GPUArray< T > &gpu_array, const access_location::Enum location=access_location::host, const access_mode::Enum mode=access_mode::readwrite) | |
the only constructor takes a reference to the GPUArray, a location and a mode | |
void | operator= (const ArrayHandle &rhs) |
Public Attributes | |
T * | data |
a pointer to the GPUArray's data | |
A mechanism for accessing data in GPUArray objects's.
The ArrayHandle, well, handles the data in the GPUArray. Given, e.g., an ArrayHandle<int> h(gpuarray,access_location::host, access_mode::readwrite); The user would access one of the integers via h.data[i] on the host or a direct acces on the device