DPC++ Runtime
Runtime libraries for oneAPI DPC++
fusion_wrapper_impl.hpp
Go to the documentation of this file.
1
//==-- fusion_wrapper_impl.hpp - SYCL wrapper for queue for kernel fusion --==//
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 <
detail/queue_impl.hpp
>
12
13
namespace
sycl
{
14
__SYCL_INLINE_VER_NAMESPACE
(_V1) {
15
namespace
detail {
16
class
fusion_wrapper_impl
{
17
public
:
18
explicit
fusion_wrapper_impl
(std::shared_ptr<detail::queue_impl> Queue);
19
20
std::shared_ptr<detail::queue_impl> get_queue()
const
;
21
22
bool
is_in_fusion_mode()
const
;
23
24
void
start_fusion();
25
26
void
cancel_fusion();
27
28
event
complete_fusion(
const
property_list
&propList = {});
29
30
private
:
31
std::shared_ptr<detail::queue_impl> MQueue;
32
};
33
}
// namespace detail
34
}
// __SYCL_INLINE_VER_NAMESPACE(_V1)
35
}
// namespace sycl
sycl::_V1::property_list
Objects of the property_list class are containers for the SYCL properties.
Definition:
property_list.hpp:24
__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
queue_impl.hpp
sycl::_V1::detail::fusion_wrapper_impl
Definition:
fusion_wrapper_impl.hpp:16
source
detail
fusion
fusion_wrapper_impl.hpp
Generated by
1.8.17