|
UMPIRE
Umpire: resource management and provision
|
Uses sycl's malloc and free to allocate and deallocate memory on Intel GPUs. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/umpire/checkouts/develop/src/umpire/alloc/SyclMallocAllocator.hpp>
Public Member Functions | |
| void * | allocate (std::size_t size, const sycl::queue &queue_t) |
| Allocate bytes of memory using SYCL malloc. More... | |
| void | deallocate (void *ptr, const sycl::queue &queue_t) |
| Deallocate memory using SYCL free. More... | |
| bool | isAccessible (umpire::Platform p) |
Uses sycl's malloc and free to allocate and deallocate memory on Intel GPUs.
|
inline |
Allocate bytes of memory using SYCL malloc.
| size | Number of bytes to allocate. |
| queue_t | SYCL queue for providing information on device and context |
| umpire::util::runtime_error | if memory cannot be allocated. |
References umpire::util::message::Debug, UMPIRE_ERROR, and UMPIRE_LOG.
|
inline |
Deallocate memory using SYCL free.
| ptr | Address to deallocate. |
| queue_t | SYCL queue this pointer was asociated with |
| umpire::util::runtime_error | if memory cannot be free'd. |
References umpire::util::message::Debug, umpire::free(), and UMPIRE_LOG.
|
inline |