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 {
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 *,
31 #endif
32 } // namespace detail
33 } // __SYCL_INLINE_VER_NAMESPACE(_V1)
34 } // namespace sycl
#define __SYCL_INLINE_VER_NAMESPACE(X)
void associateWithHandler(handler &, AccessorBaseHost *, access::target)
---— Error handling, matching OpenCL plugin semantics.
Definition: access.hpp:14