List of all members.
Public Member Functions |
| buffer (hpx::future< hpx::naming::id_type > &&gid) |
hpx::lcos::future< size_t > | size () |
| Method returns the buffer's size.
|
size_t | size_sync () |
hpx::lcos::future< void > | set_size (size_t size) |
| Method sets the buffer's size.
|
void | set_size_sync (size_t size) |
template<typename T > |
T * | enqueue_read_sync (size_t offset, size_t size) |
| Method copy synchronized the data on the attached device to the host.
|
hpx::future
< hpx::serialization::serialize_buffer
< char > > | enqueue_read (size_t offset, size_t size) |
| Method copy the data on the attached device to the host.
|
hpx::future< uintptr_t > | enqueue_read_local (size_t offset, size_t size) |
| Method copy the data on the attached device to the host.
|
hpx::future< void > | enqueue_write (size_t offset, size_t size, const void *data) const |
| Method copies the provided data on the attached device memory.
|
Detailed Description
Member Function Documentation
Method copy the data on the attached device to the host.
- Parameters:
-
offset | Offset, where to start copying data |
size | Size of the data on the device |
- Returns:
- A future with the serialized data
- Note:
- This method is for accessing data on remote localities.
Method copy the data on the attached device to the host.
- Parameters:
-
offset | Offset, where to start copying data |
size | Size of the data on the device |
- Returns:
- A future with the uintptr_t to the data
- Note:
- This method is for accessing data on local localities.
Method copy synchronized the data on the attached device to the host.
- Parameters:
-
offset | Offset, where to start copying data |
size | Size of the data on the device |
- Returns:
- Pointer to the data on the host
- Examples:
- build_kernel.cpp, and build_kernel_from_file.cpp.
Method copies the provided data on the attached device memory.
- Parameters:
-
offset | Offset, where to start copying data |
size | Size of the data on the device |
data | Pointer to the data, which is transfered to the device |
- Examples:
- build_kernel.cpp, and build_kernel_from_file.cpp.
Method sets the buffer's size.
- Parameters:
-
size | The size of the buffer |
- Note:
- Use this methods carefully for extending a buffer. Adaptive buffer on GPU are mostly performing bad.
Method returns the buffer's size.
- Returns:
- The buffer size
The documentation for this class was generated from the following file: