DPC++ Runtime
Runtime libraries for oneAPI DPC++
usm_impl.cpp File Reference
#include <detail/queue_impl.hpp>
#include <sycl/context.hpp>
#include <sycl/detail/aligned_allocator.hpp>
#include <sycl/detail/os_util.hpp>
#include <sycl/detail/pi.hpp>
#include <sycl/device.hpp>
#include <sycl/usm.hpp>
#include <array>
#include <cassert>
#include <cstdlib>
#include <memory>
Include dependency graph for usm_impl.cpp:

Go to the source code of this file.

Namespaces

 sycl
 ---— Error handling, matching OpenCL plugin semantics.
 
 sycl::_V1
 
 sycl::_V1::detail
 
 sycl::_V1::detail::usm
 

Macros

#define XPTI_CREATE_TRACEPOINT(CodeLoc)
 

Typedefs

using sycl::_V1::alloc = sycl::usm::alloc
 

Functions

void * sycl::_V1::detail::usm::alignedAllocHost (size_t Alignment, size_t Size, const context &Ctxt, alloc Kind, const property_list &PropList, const detail::code_location &CodeLoc)
 
void * sycl::_V1::detail::usm::alignedAlloc (size_t Alignment, size_t Size, const context &Ctxt, const device &Dev, alloc Kind, const property_list &PropList, const detail::code_location &CodeLoc)
 
void sycl::_V1::detail::usm::free (void *Ptr, const context &Ctxt, const code_location &CL)
 
void * sycl::_V1::malloc_device (size_t Size, const device &Dev, const context &Ctxt _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_device (size_t Size, const device &Dev, const context &Ctxt, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_device (size_t Size, const queue &Q _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_device (size_t Size, const queue &Q, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_device (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_device (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_device (size_t Alignment, size_t Size, const queue &Q _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_device (size_t Alignment, size_t Size, const queue &Q, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void sycl::_V1::free (void *ptr, const context &Ctxt _CODELOCPARAMDEF(&CodeLoc))
 
void sycl::_V1::free (void *ptr, const queue &Q _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_host (size_t Size, const context &Ctxt _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_host (size_t Size, const context &Ctxt, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_host (size_t Size, const queue &Q _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_host (size_t Size, const queue &Q, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_shared (size_t Size, const device &Dev, const context &Ctxt _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_shared (size_t Size, const device &Dev, const context &Ctxt, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_shared (size_t Size, const queue &Q _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc_shared (size_t Size, const queue &Q, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_host (size_t Alignment, size_t Size, const context &Ctxt _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_host (size_t Alignment, size_t Size, const context &Ctxt, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_host (size_t Alignment, size_t Size, const queue &Q _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_host (size_t Alignment, size_t Size, const queue &Q, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_shared (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_shared (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_shared (size_t Alignment, size_t Size, const queue &Q _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc_shared (size_t Alignment, size_t Size, const queue &Q, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc (size_t Size, const device &Dev, const context &Ctxt, alloc Kind, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc (size_t Size, const device &Dev, const context &Ctxt, alloc Kind _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc (size_t Size, const queue &Q, alloc Kind _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::malloc (size_t Size, const queue &Q, alloc Kind, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt, alloc Kind _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt, alloc Kind, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc (size_t Alignment, size_t Size, const queue &Q, alloc Kind _CODELOCPARAMDEF(&CodeLoc))
 
void * sycl::_V1::aligned_alloc (size_t Alignment, size_t Size, const queue &Q, alloc Kind, const property_list &PropList _CODELOCPARAMDEF(&CodeLoc))
 
usm::alloc sycl::_V1::get_pointer_type (const void *ptr, const context &ctxt)
 Query the allocation type from a USM pointer. More...
 
device sycl::_V1::get_pointer_device (const void *ptr, const context &ctxt)
 Queries the device against which the pointer was allocated Throws an invalid_object_error if ptr is a host allocation. More...
 

Macro Definition Documentation

◆ XPTI_CREATE_TRACEPOINT

#define XPTI_CREATE_TRACEPOINT (   CodeLoc)

Definition at line 38 of file usm_impl.cpp.