DPC++ Runtime
Runtime libraries for oneAPI DPC++
raw_kernel_arg.hpp
Go to the documentation of this file.
1 //==--- raw_kernel_arg.hpp --- SYCL extension for raw kernel args ----------==//
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 <stddef.h>
12 
13 namespace sycl {
14 inline namespace _V1 {
15 
16 class handler;
17 
18 namespace ext::oneapi::experimental {
19 
21 public:
22  raw_kernel_arg(const void *bytes, size_t count)
23  : MArgData(bytes), MArgSize(count) {}
24 
25 private:
26  const void *MArgData;
27  size_t MArgSize;
28 
29  friend class sycl::handler;
30 };
31 
32 } // namespace ext::oneapi::experimental
33 } // namespace _V1
34 } // namespace sycl
Command group handler class.
Definition: handler.hpp:467
Definition: access.hpp:18