DPC++ Runtime
Runtime libraries for oneAPI DPC++
context_properties.hpp
Go to the documentation of this file.
1
//==----------- context_properties.hpp --- SYCL context properties ---------==//
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 <
CL/sycl/context.hpp
>
12
#include <
CL/sycl/detail/property_helper.hpp
>
13
#include <
CL/sycl/properties/property_traits.hpp
>
14
15
__SYCL_INLINE_NAMESPACE
(
cl
) {
16
namespace
sycl
{
17
namespace
ext {
18
namespace
oneapi {
19
namespace
cuda {
20
namespace
property {
21
namespace
context
{
22
class
use_primary_context
:
public
::cl::sycl::detail::DataLessProperty
<
23
::cl::sycl::detail::UsePrimaryContext> {};
24
}
// namespace context
25
}
// namespace property
26
}
// namespace cuda
27
}
// namespace oneapi
28
}
// namespace ext
29
30
namespace
property {
31
namespace
context
{
32
namespace
__SYCL2020_DEPRECATED
(
33
"use '
sycl
::
ext::oneapi::cuda::property::context
'
instead
") cuda {
34
class
use_primary_context :
public
::cl::sycl::ext::oneapi::cuda::property::
35
context::use_primary_context {};
36
}
// namespace cuda
37
}
// namespace context
38
}
// namespace property
39
40
// Forward declaration
41
class
context
;
42
43
// Context property trait specializations
44
template
<>
45
struct
is_property
<property::context::cuda::use_primary_context>
46
: std::true_type {};
47
48
template
<>
49
struct
is_property_of
<property::context::cuda::use_primary_context,
context
>
50
: std::true_type {};
51
52
template
<>
53
struct
is_property
<ext::oneapi::cuda::property::context::use_primary_context>
54
: std::true_type {};
55
56
template
<>
57
struct
is_property_of
<ext::oneapi::cuda::property::context::use_primary_context,
58
context
> : std::true_type {};
59
60
}
// namespace sycl
61
}
// __SYCL_INLINE_NAMESPACE(cl)
property_traits.hpp
__SYCL2020_DEPRECATED
#define __SYCL2020_DEPRECATED(message)
Definition:
defines_elementary.hpp:56
cl::sycl::ext::oneapi::cuda::property::context::use_primary_context
Definition:
context_properties.hpp:22
context.hpp
sycl
Definition:
invoke_simd.hpp:68
cl::sycl::is_property
Definition:
property_traits.hpp:15
cl::sycl::detail::DataLessProperty
Definition:
property_helper.hpp:62
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
property_helper.hpp
cl::sycl::context
The context class represents a SYCL context on which kernel functions may be executed.
Definition:
context.hpp:35
cl::sycl::instead
std::uint8_t instead
Definition:
aliases.hpp:68
cl::sycl::info::context
context
Definition:
info_desc.hpp:42
__SYCL_INLINE_NAMESPACE
#define __SYCL_INLINE_NAMESPACE(X)
Definition:
defines_elementary.hpp:12
include
CL
sycl
properties
context_properties.hpp
Generated by
1.8.17