![]() |
The Gaudi Framework
v41r0 (bdbe7744)
|
#include </builds/gaudi/Gaudi/GaudiCUDA/src/CUDADeviceArray.h>

Public Member Functions | |
| DeviceArray (Stream &stream, std::size_t len) | |
| Construct DeviceArray local to a Stream (i.e. Algorithm). May not be stored in whiteboard. | |
| DeviceArray (DeviceArrayGlobalTag_t globalTag, std::size_t len) | |
| Construct global DeviceArray (may be stored in whiteboard). | |
| ~DeviceArray () | |
| Destructor. | |
| template<HostRange< T > R> | |
| DeviceArray & | operator= (const R &src) |
| Copy from a HostRange. | |
| DeviceArray & | operator= (const T &src) |
| Copy from a host value (for size 1). | |
| DeviceArray & | operator= (const DeviceArray &rhs) |
| Copy from another DeviceArray You can copy between arrays in the same stream, or between a local and a global DeviceArray. | |
| template<HostRange< T > R> | |
| void | toHost (R &dest) |
| Copy to a HostRange. | |
| void | toHost (T &dest) |
| Copy to a host value (for size 1). | |
| T * | devPtr () |
| Return raw device pointer. | |
| T * | operator& () |
| Alias for devPtr. | |
| T * | operator-> () |
| Allow access to struct members. | |
| template<HostRange< T > R> | |
| DeviceArray< T > & | operator= (const R &src) |
Private Attributes | |
| T * | m_ptr |
| const std::size_t | m_len |
| const std::size_t | m_size |
| Stream *const | m_stream |
Definition at line 44 of file CUDADeviceArray.h.
| Gaudi::CUDA::DeviceArray< T >::DeviceArray | ( | Stream & | stream, |
| std::size_t | len ) |
Construct DeviceArray local to a Stream (i.e. Algorithm). May not be stored in whiteboard.
Definition at line 100 of file CUDADeviceArray.h.
| Gaudi::CUDA::DeviceArray< T >::DeviceArray | ( | DeviceArrayGlobalTag_t | globalTag, |
| std::size_t | len ) |
Construct global DeviceArray (may be stored in whiteboard).
Definition at line 109 of file CUDADeviceArray.h.
| Gaudi::CUDA::DeviceArray< T >::~DeviceArray | ( | ) |
Destructor.
Definition at line 117 of file CUDADeviceArray.h.
|
inline |
|
inline |
|
inline |
| DeviceArray< T > & Gaudi::CUDA::DeviceArray< T >::operator= | ( | const DeviceArray< T > & | rhs | ) |
Copy from another DeviceArray You can copy between arrays in the same stream, or between a local and a global DeviceArray.
You cannot copy between arrays in different streams.
Definition at line 149 of file CUDADeviceArray.h.
| DeviceArray< T > & Gaudi::CUDA::DeviceArray< T >::operator= | ( | const R & | src | ) |
Definition at line 128 of file CUDADeviceArray.h.
| DeviceArray & Gaudi::CUDA::DeviceArray< T >::operator= | ( | const R & | src | ) |
Copy from a HostRange.
|
inline |
| void Gaudi::CUDA::DeviceArray< T >::toHost | ( | R & | dest | ) |
Copy to a HostRange.
Definition at line 188 of file CUDADeviceArray.h.
| void Gaudi::CUDA::DeviceArray< T >::toHost | ( | T & | dest | ) |
Copy to a host value (for size 1).
Definition at line 208 of file CUDADeviceArray.h.
|
private |
Definition at line 77 of file CUDADeviceArray.h.
|
private |
Definition at line 76 of file CUDADeviceArray.h.
|
private |
Definition at line 78 of file CUDADeviceArray.h.
|
private |
Definition at line 79 of file CUDADeviceArray.h.