DPC++ Runtime
Runtime libraries for oneAPI DPC++
sub_group.hpp
Go to the documentation of this file.
1
//==----------- sub_group.hpp --- SYCL sub-group ---------------------------==//
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/detail/defines_elementary.hpp
>
// for __SYCL_DEPRECATED
12
#include <
sycl/sub_group.hpp
>
// for sub_group
13
14
#include <tuple>
// for _Swallow_assign, ignore
15
16
namespace
sycl
{
17
inline
namespace
_V1 {
18
namespace
ext::oneapi {
19
struct
__SYCL_DEPRECATED
("
use
sycl
::
sub_group
()
instead
")
sub_group
20
:
sycl::sub_group
{
21
// These two constructors are intended to keep the correctness of such code
22
// after the sub_group class migration from ext::oneapi to the sycl namespace:
23
// sycl::ext::oneapi::sub_group sg =
24
// sycl::ext::oneapi::experimental::this_sub_group();
25
// ...
26
// sycl::ext::oneapi::sub_group sg = item.get_sub_group();
27
// Note: this constructor is used for implicit conversion. Since the
28
// sub_group class doesn't have any members, just ignore the arg.
29
sub_group
(
const
sycl::sub_group
&sg) :
sub_group
() { std::ignore = sg; }
30
31
private
:
32
sub_group
() =
default
;
33
};
34
}
// namespace ext::oneapi
35
}
// namespace _V1
36
}
// namespace sycl
defines_elementary.hpp
__SYCL_DEPRECATED
#define __SYCL_DEPRECATED(message)
Definition:
defines_elementary.hpp:44
sycl::_V1::ext::oneapi::experimental::matrix::use
use
Definition:
matrix-unified-utils.hpp:21
sycl::_V1::instead
std::uint8_t instead
Definition:
aliases.hpp:93
sycl::_V1::memory_scope::sub_group
@ sub_group
sycl
Definition:
access.hpp:18
sycl::sub_group
Definition:
sub_group.hpp:139
sub_group.hpp
include
sycl
ext
oneapi
sub_group.hpp
Generated by
1.9.1