DPC++ Runtime
Runtime libraries for oneAPI DPC++
property_traits.hpp
Go to the documentation of this file.
1
//==------------ property_traits.hpp --- SYCL property traits --------------==//
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
__SYCL_INLINE_NAMESPACE
(
cl
) {
12
namespace
sycl
{
13
14
// Property traits
15
template
<
typename
propertyT>
struct
is_property
:
public
std::false_type {};
16
17
template
<
typename
propertyT,
typename
syclObjectT>
18
struct
is_property_of
:
public
std::false_type {};
19
20
template
<
typename
propertyT>
21
__SYCL_INLINE_CONSTEXPR
bool
is_property_v
=
is_property<propertyT>::value
;
22
23
template
<
typename
propertyT,
typename
syclObjectT>
24
__SYCL_INLINE_CONSTEXPR
bool
is_property_of_v
=
25
is_property_of<propertyT, syclObjectT>::value
;
26
27
}
// namespace sycl
28
}
// __SYCL_INLINE_NAMESPACE(cl)
sycl
Definition:
invoke_simd.hpp:68
cl::sycl::is_property
Definition:
property_traits.hpp:15
cl::sycl::is_property_of
Definition:
property_traits.hpp:18
cl
We provide new interfaces for matrix muliply in this patch:
Definition:
access.hpp:13
cl::sycl::is_property_of_v
__SYCL_INLINE_CONSTEXPR bool is_property_of_v
Definition:
property_traits.hpp:24
__SYCL_INLINE_CONSTEXPR
#define __SYCL_INLINE_CONSTEXPR
Definition:
defines_elementary.hpp:65
cl::sycl::is_property_v
__SYCL_INLINE_CONSTEXPR bool is_property_v
Definition:
property_traits.hpp:21
__SYCL_INLINE_NAMESPACE
#define __SYCL_INLINE_NAMESPACE(X)
Definition:
defines_elementary.hpp:12
include
CL
sycl
properties
property_traits.hpp
Generated by
1.8.17