DPC++ Runtime
Runtime libraries for oneAPI DPC++
usm_impl.hpp
Go to the documentation of this file.
1 //==-------------- usm_impl.hpp - SYCL USM Utils ---------------*- C++ -*---==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 // ===--------------------------------------------------------------------=== //
8 #pragma once
9 
13 
15 namespace sycl {
16 namespace detail {
17 namespace usm {
18 
19 __SYCL_EXPORT void *alignedAlloc(size_t Alignment, size_t Bytes,
20  const context &Ctxt, const device &Dev,
22  const code_location &CL);
23 
24 __SYCL_EXPORT void *alignedAllocHost(size_t Alignment, size_t Bytes,
25  const context &Ctxt,
27  const code_location &CL);
28 
29 __SYCL_EXPORT void free(void *Ptr, const context &Ctxt,
30  const code_location &CL);
31 
32 } // namespace usm
33 } // namespace detail
34 } // namespace sycl
35 } // __SYCL_INLINE_NAMESPACE(cl)
sycl
Definition: invoke_simd.hpp:68
cl::sycl::detail::code_location
Definition: common.hpp:54
export.hpp
cl::sycl::device
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
Definition: device.hpp:35
cl
We provide new interfaces for matrix muliply in this patch:
Definition: access.hpp:13
cl::sycl::detail::usm::free
void free(void *Ptr, const context &Ctxt, const code_location &CL)
Definition: usm_impl.cpp:181
cl::sycl::context
The context class represents a SYCL context on which kernel functions may be executed.
Definition: context.hpp:35
common.hpp
usm_enums.hpp
cl::sycl::detail::usm::alignedAllocHost
void * alignedAllocHost(size_t Alignment, size_t Bytes, const context &Ctxt, cl::sycl::usm::alloc Kind, const code_location &CL)
Definition: usm_impl.cpp:46
cl::sycl::usm::alloc
alloc
Definition: usm_enums.hpp:14
cl::sycl::detail::usm::alignedAlloc
void * alignedAlloc(size_t Alignment, size_t Bytes, const context &Ctxt, const device &Dev, cl::sycl::usm::alloc Kind, const code_location &CL)
__SYCL_INLINE_NAMESPACE
#define __SYCL_INLINE_NAMESPACE(X)
Definition: defines_elementary.hpp:12