This class implements the default behavior for the Buffer methods related to execution space. This class is not intended to be used directly, instead derive from it if you would like to inherit the default behavior.
More...
#include <bufferManipulation.hpp>
This class implements the default behavior for the Buffer methods related to execution space. This class is not intended to be used directly, instead derive from it if you would like to inherit the default behavior.
◆ getPreviousSpace()
| MemorySpace LvArray::bufferManipulation::VoidBuffer::getPreviousSpace |
( |
| ) |
const |
|
inline |
- Returns
- The last space the buffer was moved to.
- Note
- The default behavior is that the Buffer can only exist on the CPU.
◆ move()
| void LvArray::bufferManipulation::VoidBuffer::move |
( |
MemorySpace const |
space, |
|
|
bool const |
touch |
|
) |
| const |
|
inline |
Move the buffer to the given execution space, optionally touching it.
- Parameters
-
| space | The space to move the buffer to. |
| touch | Whether the buffer should be touched in the new space or not. |
- Note
- The default behavior is that the Buffer can only exist on the CPU and an error occurs if you try to move it to a different space.
◆ moveNested()
| void LvArray::bufferManipulation::VoidBuffer::moveNested |
( |
MemorySpace const |
space, |
|
|
std::ptrdiff_t const |
size, |
|
|
bool const |
touch |
|
) |
| const |
|
inline |
Move the buffer to the given execution space, optionally touching it.
- Parameters
-
| space | The space to move the buffer to. |
| size | The size of the buffer. |
| touch | Whether the buffer should be touched in the new space or not. |
- Note
- The default behavior is that the Buffer can only exist on the CPU and an error occurs if you try to move it to a different space.
◆ registerTouch()
| void LvArray::bufferManipulation::VoidBuffer::registerTouch |
( |
MemorySpace const |
space | ) |
const |
|
inline |
Touch the buffer in the given space.
- Parameters
-
- Note
- The default behavior is that the Buffer can only exist on the CPU and an error occurs if you try to move it to a different space.
◆ setName()
template<typename = VoidBuffer>
| LVARRAY_HOST_DEVICE void LvArray::bufferManipulation::VoidBuffer::setName |
( |
std::string const & |
name | ) |
|
|
inline |
Set the name associated with this buffer.
- Template Parameters
-
| The | type of the owning object. |
- Parameters
-
| name | the name of the buffer. |
The documentation for this class was generated from the following file: