|
LvArray
|
Contains the LvArray umpire interface. This is only used to keep umpire/ResourceManager.hpp out of the includes for most headers. More...
#include <camp/resource.hpp>

Go to the source code of this file.
Namespaces | |
| LvArray | |
| The top level namespace. | |
Functions | |
| void | LvArray::umpireInterface::copy (void *const dstPointer, void *const srcPointer, std::size_t const size) |
Use memcpy to copy srcPointer in to dstPointer. More... | |
| camp::resources::Event | LvArray::umpireInterface::copy (void *const dstPointer, void *const srcPointer, camp::resources::Resource &resource, std::size_t const size) |
Use memcpy to (maybe asynchronously) copy src in to dst. More... | |
| void | LvArray::umpireInterface::memset (void *const dstPointer, int const val, std::size_t const size) |
Use memset to set the bytes of dstPointer. More... | |
Contains the LvArray umpire interface. This is only used to keep umpire/ResourceManager.hpp out of the includes for most headers.
| void LvArray::umpireInterface::copy | ( | void *const | dstPointer, |
| void *const | srcPointer, | ||
| std::size_t const | size | ||
| ) |
Use memcpy to copy srcPointer in to dstPointer.
| dstPointer | The destination pointer. |
| srcPointer | The source pointer. |
| size | The number of bytes to copy. |
If both src and dst were allocated with Umpire then the Umpire ResouceManager is used to perform the copy, otherwise std::memcpy is used.
| camp::resources::Event LvArray::umpireInterface::copy | ( | void *const | dstPointer, |
| void *const | srcPointer, | ||
| camp::resources::Resource & | resource, | ||
| std::size_t const | size | ||
| ) |
Use memcpy to (maybe asynchronously) copy src in to dst.
| dstPointer | The destination slice. |
| srcPointer | The source slice. |
| resource | The resource to use. |
| size | The number of bytes to copy. |
If both src and dst were allocated with Umpire then the Umpire ResouceManager is used to perform the copy, otherwise std::memcpy is used. Umpire does not currently support asynchronous copying with host resources, in fact it does not even support synchronous copying with host resources. As such if a resource wraps a resource of type camp::resouces::Host the method that doesn't take a resource is used.
| void LvArray::umpireInterface::memset | ( | void *const | dstPointer, |
| int const | val, | ||
| std::size_t const | size | ||
| ) |
Use memset to set the bytes of dstPointer.
| dstPointer | The destination pointer. |
| val | The value (converted to a char) to set. |
| size | The number of bytes to set. |
If both src and dst were allocated with Umpire then the Umpire ResouceManager is used to perform the memset, otherwise std::memcpy is used.
1.8.13