DPC++ Runtime
Runtime libraries for oneAPI DPC++
handler_proxy.hpp
Go to the documentation of this file.
1
//==--------- handler_proxy.hpp - Proxy methods to call in handler ---------==//
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
9
#pragma once
10
11
#include <
sycl/access/access.hpp
>
12
#include <
sycl/detail/export.hpp
>
13
14
namespace
sycl
{
15
__SYCL_INLINE_VER_NAMESPACE
(_V1) {
16
17
class
handler;
18
19
namespace
detail {
20
21
class
AccessorBaseHost;
22
23
#ifdef __SYCL_DEVICE_ONLY__
24
// In device compilation accessor isn't inherited from AccessorBaseHost, so
25
// can't detect by it. Since we don't expect it to be ever called in device
26
// execution, just use blind void *.
27
inline
void
associateWithHandler
(handler &,
void
*,
access::target
) {}
28
#else
29
__SYCL_EXPORT
void
associateWithHandler
(handler &, AccessorBaseHost *,
30
access::target
);
31
#endif
32
}
// namespace detail
33
}
// __SYCL_INLINE_VER_NAMESPACE(_V1)
34
}
// namespace sycl
sycl::_V1::detail::associateWithHandler
void associateWithHandler(handler &, AccessorBaseHost *, access::target)
Definition:
handler_proxy.cpp:17
__SYCL_INLINE_VER_NAMESPACE
#define __SYCL_INLINE_VER_NAMESPACE(X)
Definition:
defines_elementary.hpp:11
sycl
---— Error handling, matching OpenCL plugin semantics.
Definition:
access.hpp:14
access.hpp
export.hpp
sycl::_V1::access::target
target
Definition:
access.hpp:18
include
sycl
detail
handler_proxy.hpp
Generated by
1.8.17