DPC++ Runtime
Runtime libraries for oneAPI DPC++
kernel_properties.hpp
Go to the documentation of this file.
1 //==---------------- kernel_properties.hpp - SYCL Kernel 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 // APIs for setting kernel properties interpreted by GPU software stack.
9 //===----------------------------------------------------------------------===//
10 
11 #pragma once
12 
15 
16 namespace sycl {
17 inline namespace _V1 {
18 namespace detail {
19 enum class register_alloc_mode_enum : uint32_t {
20  automatic = 0,
21  large = 2,
22 };
23 
26  ext::oneapi::experimental::detail::PropKind::RegisterAllocMode> {
27  template <register_alloc_mode_enum Mode>
30  std::integral_constant<register_alloc_mode_enum, Mode>>;
31 };
32 
33 template <register_alloc_mode_enum Mode>
34 inline constexpr register_alloc_mode_key::value_t<Mode> register_alloc_mode
35  __SYCL_DEPRECATED("register_alloc_mode is deprecated, "
36  "use sycl::ext::intel::experimental::grf_size or "
37  "sycl::ext::intel::experimental::grf_size_automatic");
38 } // namespace detail
39 
40 namespace ext::oneapi::experimental {
41 namespace detail {
42 template <sycl::detail::register_alloc_mode_enum Mode>
44  static constexpr const char *name = "sycl-register-alloc-mode";
46 };
47 } // namespace detail
48 } // namespace ext::oneapi::experimental
49 } // namespace _V1
50 } // namespace sycl
constexpr register_alloc_mode_key::value_t< Mode > register_alloc_mode __SYCL_DEPRECATED("register_alloc_mode is deprecated, " "use sycl::ext::intel::experimental::grf_size or " "sycl::ext::intel::experimental::grf_size_automatic")
Definition: access.hpp:18