DPC++ Runtime
Runtime libraries for oneAPI DPC++
usm_impl.cpp File Reference
#include <CL/sycl/context.hpp>
#include <CL/sycl/detail/aligned_allocator.hpp>
#include <CL/sycl/detail/os_util.hpp>
#include <CL/sycl/detail/pi.hpp>
#include <CL/sycl/device.hpp>
#include <CL/sycl/usm.hpp>
#include <detail/queue_impl.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

 cl
 We provide new interfaces for matrix muliply in this patch:
 
 cl::sycl
 
 cl::sycl::detail
 
 cl::sycl::detail::usm
 

Macros

#define XPTI_CREATE_TRACEPOINT(CL)
 

Typedefs

using cl::sycl::alloc = cl::sycl::usm::alloc
 

Functions

void * cl::sycl::detail::usm::alignedAllocHost (size_t Alignment, size_t Size, const context &Ctxt, alloc Kind, const detail::code_location &CL, const property_list &PropList={})
 
void * cl::sycl::detail::usm::alignedAlloc (size_t Alignment, size_t Size, const context &Ctxt, const device &Dev, alloc Kind, const detail::code_location &CL, const property_list &PropList={})
 
void cl::sycl::detail::usm::free (void *Ptr, const context &Ctxt, const code_location &CL)
 
void * cl::sycl::detail::usm::alignedAllocHost (size_t Alignment, size_t Size, const context &Ctxt, alloc Kind)
 
void cl::sycl::detail::usm::free (void *Ptr, const context &Ctxt)
 
void * cl::sycl::detail::usm::alignedAlloc (size_t Alignment, size_t Size, const context &Ctxt, const device &Dev, alloc Kind)
 
void * cl::sycl::malloc_device (size_t size, const device &dev, const context &ctxt, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_device (size_t size, const device &dev, const context &ctxt, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_device (size_t size, const queue &q, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_device (size_t size, const queue &q, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_device (size_t alignment, size_t size, const device &dev, const context &ctxt, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_device (size_t alignment, size_t size, const device &dev, const context &ctxt, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_device (size_t alignment, size_t size, const queue &q, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_device (size_t alignment, size_t size, const queue &q, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void cl::sycl::free (void *ptr, const context &ctxt, const detail::code_location CodeLoc)
 
void cl::sycl::free (void *ptr, const queue &q, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_host (size_t size, const context &ctxt, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_host (size_t size, const context &ctxt, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_host (size_t size, const queue &q, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_host (size_t size, const queue &q, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_shared (size_t size, const device &dev, const context &ctxt, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_shared (size_t size, const device &dev, const context &ctxt, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_shared (size_t size, const queue &q, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc_shared (size_t size, const queue &q, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_host (size_t alignment, size_t size, const context &ctxt, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_host (size_t alignment, size_t size, const context &ctxt, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_host (size_t alignment, size_t size, const queue &q, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_host (size_t alignment, size_t size, const queue &q, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_shared (size_t alignment, size_t size, const device &dev, const context &ctxt, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_shared (size_t alignment, size_t size, const device &dev, const context &ctxt, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_shared (size_t alignment, size_t size, const queue &q, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc_shared (size_t alignment, size_t size, const queue &q, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc (size_t size, const device &dev, const context &ctxt, usm::alloc kind, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc (size_t size, const device &dev, const context &ctxt, usm::alloc kind, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc (size_t size, const queue &q, usm::alloc kind, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::malloc (size_t size, const queue &q, usm::alloc kind, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc (size_t alignment, size_t size, const device &dev, const context &ctxt, usm::alloc kind, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc (size_t alignment, size_t size, const device &dev, const context &ctxt, usm::alloc kind, const property_list &propList, const detail::code_location CodeLoc)
 
void * cl::sycl::aligned_alloc (size_t alignment, size_t size, const queue &q, usm::alloc kind, const detail::code_location CodeLoc=detail::code_location::current())
 
void * cl::sycl::aligned_alloc (size_t alignment, size_t size, const queue &q, usm::alloc kind, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current())
 
usm::alloc cl::sycl::get_pointer_type (const void *ptr, const context &ctxt)
 Query the allocation type from a USM pointer. More...
 
device cl::sycl::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...
 
void * cl::sycl::malloc_device (size_t Size, const device &Dev, const context &Ctxt)
 
void * cl::sycl::malloc_device (size_t Size, const device &Dev, const context &Ctxt, const property_list &)
 
void * cl::sycl::malloc_device (size_t Size, const queue &Q)
 
void * cl::sycl::malloc_device (size_t Size, const queue &Q, const property_list &PropList)
 
void * cl::sycl::aligned_alloc_device (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt)
 
void * cl::sycl::aligned_alloc_device (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt, const property_list &)
 
void * cl::sycl::aligned_alloc_device (size_t Alignment, size_t Size, const queue &Q)
 
void * cl::sycl::aligned_alloc_device (size_t Alignment, size_t Size, const queue &Q, const property_list &PropList)
 
void cl::sycl::free (void *ptr, const context &Ctxt)
 
void cl::sycl::free (void *ptr, const queue &Q)
 
void * cl::sycl::malloc_host (size_t Size, const context &Ctxt)
 
void * cl::sycl::malloc_host (size_t Size, const context &Ctxt, const property_list &)
 
void * cl::sycl::malloc_host (size_t Size, const queue &Q)
 
void * cl::sycl::malloc_host (size_t Size, const queue &Q, const property_list &PropList)
 
void * cl::sycl::malloc_shared (size_t Size, const device &Dev, const context &Ctxt)
 
void * cl::sycl::malloc_shared (size_t Size, const device &Dev, const context &Ctxt, const property_list &)
 
void * cl::sycl::malloc_shared (size_t Size, const queue &Q)
 
void * cl::sycl::malloc_shared (size_t Size, const queue &Q, const property_list &PropList)
 
void * cl::sycl::aligned_alloc_host (size_t Alignment, size_t Size, const context &Ctxt)
 
void * cl::sycl::aligned_alloc_host (size_t Alignment, size_t Size, const context &Ctxt, const property_list &)
 
void * cl::sycl::aligned_alloc_host (size_t Alignment, size_t Size, const queue &Q)
 
void * cl::sycl::aligned_alloc_host (size_t Alignment, size_t Size, const queue &Q, const property_list &PropList)
 
void * cl::sycl::aligned_alloc_shared (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt)
 
void * cl::sycl::aligned_alloc_shared (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt, const property_list &)
 
void * cl::sycl::aligned_alloc_shared (size_t Alignment, size_t Size, const queue &Q)
 
void * cl::sycl::aligned_alloc_shared (size_t Alignment, size_t Size, const queue &Q, const property_list &PropList)
 
void * cl::sycl::malloc (size_t Size, const device &Dev, const context &Ctxt, alloc Kind)
 
void * cl::sycl::malloc (size_t Size, const device &Dev, const context &Ctxt, alloc Kind, const property_list &)
 
void * cl::sycl::malloc (size_t Size, const queue &Q, alloc Kind)
 
void * cl::sycl::malloc (size_t Size, const queue &Q, alloc Kind, const property_list &PropList)
 
void * cl::sycl::aligned_alloc (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt, alloc Kind)
 
void * cl::sycl::aligned_alloc (size_t Alignment, size_t Size, const device &Dev, const context &Ctxt, alloc Kind, const property_list &)
 
void * cl::sycl::aligned_alloc (size_t Alignment, size_t Size, const queue &Q, alloc Kind)
 
void * cl::sycl::aligned_alloc (size_t Alignment, size_t Size, const queue &Q, alloc Kind, const property_list &PropList)
 

Macro Definition Documentation

◆ XPTI_CREATE_TRACEPOINT

#define XPTI_CREATE_TRACEPOINT (   CL)

Definition at line 37 of file usm_impl.cpp.