#include <vector_device.h>
|
| vector () |
|
| vector (Size n) |
|
| vector (const vector< T, MemoryManager > &v) |
|
bool | isHostValid () const |
|
bool | isDeviceValid (unsigned gpu) const |
|
void | clear () |
|
void | operator= (const vector< T, MemoryManager > &v) |
|
| ~vector () |
|
Size | size () const |
|
Size | capacity () const |
|
bool | empty () const |
|
void | reserve (Size s, Size WARP_SIZE=MemoryManager::BSIZE) |
|
void | fastResize (Size s, Size WARP_SIZE=MemoryManager::BSIZE) |
| resize the vector without calling constructors or destructors, and without synchronizing the device and host copy More...
|
|
void | recreate (Size s, Size WARP_SIZE=MemoryManager::BSIZE) |
| resize the vector discarding any old values, without calling constructors or destructors, and without synchronizing the device and host copy More...
|
|
void | invalidateDevice () |
|
void | invalidateHost () |
|
void | memsetDevice (int v=0) |
|
void | memsetHost (int v=0) |
|
void | resize (Size s, Size WARP_SIZE=MemoryManager::BSIZE) |
|
void | swap (vector< T, MemoryManager > &v) |
|
const device_pointer | deviceReadAt (int i, int gpu=MemoryManager::getBufferDevice()) const |
|
const device_pointer | deviceRead (int gpu=MemoryManager::getBufferDevice()) const |
|
device_pointer | deviceWriteAt (int i, int gpu=MemoryManager::getBufferDevice()) |
|
device_pointer | deviceWrite (int gpu=MemoryManager::getBufferDevice()) |
|
const T * | hostRead () const |
|
T * | hostWrite () |
|
const T * | hostReadAt (int i) const |
|
T * | hostWriteAt (int i) |
|
buffer_id_type | bufferRead (bool create=false) |
| Get the Buffer Object ID for reading. More...
|
|
buffer_id_type | bufferWrite (bool create=false) |
| Get the Buffer Object ID for writing. More...
|
|
void | push_back (const T &t) |
|
void | pop_back () |
|
const T & | operator[] (Size i) const |
|
T & | operator[] (Size i) |
|
const T * | data () const |
|
T * | data () |
|
const T & | getCached (Size i) const |
|
const T & | getSingle (Size i) const |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
iterator | begin () |
|
iterator | end () |
|
iterator | erase (iterator position) |
|
iterator | insert (iterator position, const T &x) |
|
template<> |
std::istream & | read (std::istream &in) |
|
template<> |
std::istream & | read (std::istream &in) |
|
template<> |
std::ostream & | write (std::ostream &os) const |
|
template<> |
std::istream & | read (std::istream &in) |
|
template<class T, class MemoryManager>
template<class T, class MemoryManager>
True if the buffer is registered with CUDA.
template<class T, class MemoryManager>
Optionnal associated buffer ID.
template<class T, class MemoryManager>
when initializing missing device data, up to where entries should be set to zero ?
template<class T, class MemoryManager>
Allocated size on each device.
template<class T, class MemoryManager>
True if the data on the GPU is currently valid (up to the given deviceVectorSize of each device, i.e. additionnal space may need to be allocated and/or initialized)
template<class T, class MemoryManager>
Pointer to the data on the GPU side.
template<class T, class MemoryManager>
Initialized size on each device.
template<class T, class MemoryManager>
True if the data on the CPU is currently valid.
template<class T, class MemoryManager>
Pointer to the data on the CPU side.
template<class T, class MemoryManager>
Current size of the vector.
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
Get the Buffer Object ID for reading.
template<class T, class MemoryManager>
Get the Buffer Object ID for writing.
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
resize the vector without calling constructors or destructors, and without synchronizing the device and host copy
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
Input stream Specialization for reading vectors of int and unsigned int using "A-B" notation for all integers between A and B, optionnally specifying a step using "A-B-step" notation.
Input stream Specialization for reading vectors of int and unsigned int using "A-B" notation for all integers between A and B
Input stream Specialization for reading vectors of unsigned char
template<class T, class MemoryManager>
resize the vector discarding any old values, without calling constructors or destructors, and without synchronizing the device and host copy
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
template<class T, class MemoryManager>
Output stream Specialization for writing vectors of unsigned char
template<class T, class MemoryManager>
Enumerator |
---|
ALL_DEVICE_VALID |
|
template<class T, class MemoryManager>
template<class T, class MemoryManager>