usm.h File Reference
#include "SYCL/base.h"
#include "SYCL/buffer.h"
#include "SYCL/experimental/usm_definitions.h"
#include "SYCL/predefines.h"
#include <cstddef>
#include "computecpp_export.h"
Go to the source code of this file.
Classes | |
class | cl::sycl::experimental::usm_allocator< T, AllocKind, Alignment > |
USM allocator. More... | |
struct | cl::sycl::experimental::usm_allocator< T, AllocKind, Alignment >::rebind< U > |
Allows allocator rebinding. More... | |
Namespaces | |
cl | |
deduce_type_t takes an arbitrary type and attempts to map it to a cl::sycl::cl_type . | |
cl::sycl | |
cl::sycl::experimental | |
cl::sycl::ext | |
cl::sycl::ext::codeplay | |
Functions | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::malloc_device (size_t size, const device &dev, const context &ctx) |
Performs a USM allocation on the device. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::malloc_device (size_t size, const queue &q) |
Performs a USM allocation on the device. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::aligned_alloc_device (size_t alignment, size_t size, const device &dev, const context &ctx) |
Performs a USM allocation on the device with a specific alignment. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::aligned_alloc_device (size_t alignment, size_t size, const queue &q) |
Performs a USM allocation on the device with a specific alignment. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::malloc_host (size_t size, const context &ctx) |
Performs a host USM allocation. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::malloc_host (size_t size, const queue &q) |
Performs a host USM allocation. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::aligned_alloc_host (size_t alignment, size_t size, const context &ctx) |
Performs a host USM allocation with a specific alignment. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::aligned_alloc_host (size_t alignment, size_t size, const queue &q) |
Performs a host USM allocation with a specific alignment. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::malloc_shared (size_t size, const device &dev, const context &ctx) |
Performs a shared USM allocation. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::malloc_shared (size_t size, const queue &q) |
Performs a shared USM allocation. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::aligned_alloc_shared (size_t alignment, size_t size, const device &dev, const context &ctx) |
Performs a shared USM allocation with a specific alignment. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::aligned_alloc_shared (size_t alignment, size_t size, const queue &q) |
Performs a shared USM allocation with a specific alignment. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::malloc (size_t size, const device &dev, const context &ctx, usm::alloc allocKind) |
Performs a USM allocation. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::malloc (size_t size, const queue &q, usm::alloc allocKind) |
Performs a USM allocation. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::aligned_alloc (size_t alignment, size_t size, const device &dev, const context &ctx, usm::alloc allocKind) |
Performs a USM allocation with a specific alignment. More... | |
COMPUTECPP_EXPORT void * | cl::sycl::experimental::aligned_alloc (size_t alignment, size_t size, const queue &q, usm::alloc allocKind) |
Performs a USM allocation with a specific alignment. More... | |
COMPUTECPP_EXPORT void | cl::sycl::experimental::free (void *ptr, const context &ctx) |
Frees USM allocated memory. More... | |
COMPUTECPP_EXPORT void | cl::sycl::experimental::free (void *ptr, const queue &q) |
Frees USM allocated memory. More... | |
COMPUTECPP_EXPORT usm::alloc | cl::sycl::experimental::get_pointer_type (const void *ptr, const context &ctx) |
Unified Shared Memory pointer type query. More... | |
COMPUTECPP_EXPORT device | cl::sycl::experimental::get_pointer_device (const void *ptr, const context &ctx) |
Unified Shared Memory device for pointer query. More... | |
template<class T1 , usm::alloc AllocKindT1, size_t AlignmentT1, class T2 , usm::alloc AllocKindT2, size_t AlignmentT2> | |
bool | cl::sycl::experimental::operator== (const usm_allocator< T1, AllocKindT1, AlignmentT1 > &lhs, const usm_allocator< T2, AllocKindT2, AlignmentT2 > &rhs) noexcept |
Compares two USM allocators. More... | |
template<class T1 , usm::alloc AllocKindT1, size_t AlignmentT1, class T2 , usm::alloc AllocKindT2, size_t AlignmentT2> | |
bool | cl::sycl::experimental::operator!= (const usm_allocator< T1, AllocKindT1, AlignmentT1 > &lhs, const usm_allocator< T2, AllocKindT2, AlignmentT2 > &rhs) noexcept |
Compares two USM allocators. More... | |
template<typename T > | |
sycl::buffer< T > | cl::sycl::ext::codeplay::get_buffer (T *usmPointer, sycl::context &ctx) |
Get the buffer associated with a USM pointer. More... | |