|
QTrk
|
#include <gpu_utils.h>
Public Member Functions | |
| device_vec () | |
| device_vec (size_t N) | |
| device_vec (const device_vec< T > &src) | |
| device_vec (const std::vector< T > &src) | |
| ~device_vec () | |
| void | init (size_t s) |
| void | free () |
| operator std::vector< T > () const | |
| device_vec< T > & | operator= (const std::vector< T > &src) |
| device_vec< T > & | operator= (const device_vec< T > &src) |
| void | copyToHost (T *dst, bool async, cudaStream_t s=0) |
| void | copyToHost (std::vector< T > &dst, bool async, cudaStream_t s=0) |
| void | copyToDevice (const std::vector< T > &src, bool async=false, cudaStream_t s=0) |
| void | copyToDevice (const T *first, size_t size, bool async=false, cudaStream_t s=0) |
| std::vector< T > | toVector () |
| size_t | memsize () |
Public Attributes | |
| size_t | size |
| T * | data |
Definition at line 68 of file gpu_utils.h.
|
inline |
Definition at line 70 of file gpu_utils.h.
|
inline |
Definition at line 75 of file gpu_utils.h.
|
inline |
Definition at line 80 of file gpu_utils.h.
|
inline |
Definition at line 85 of file gpu_utils.h.
|
inline |
Definition at line 90 of file gpu_utils.h.
|
inline |
Definition at line 137 of file gpu_utils.h.
|
inline |
Definition at line 140 of file gpu_utils.h.
|
inline |
Definition at line 126 of file gpu_utils.h.
|
inline |
Definition at line 132 of file gpu_utils.h.
|
inline |
Definition at line 104 of file gpu_utils.h.
|
inline |
Definition at line 93 of file gpu_utils.h.
|
inline |
Definition at line 154 of file gpu_utils.h.
|
inline |
Definition at line 110 of file gpu_utils.h.
|
inline |
Definition at line 115 of file gpu_utils.h.
|
inline |
Definition at line 120 of file gpu_utils.h.
|
inline |
Definition at line 149 of file gpu_utils.h.
| T* device_vec< T >::data |
Definition at line 156 of file gpu_utils.h.
| size_t device_vec< T >::size |
Definition at line 155 of file gpu_utils.h.
1.8.12