DPC++ Runtime
Runtime libraries for oneAPI DPC++
kernel_bundle_enums.hpp
Go to the documentation of this file.
1 //==------- kernel_bundle_enums.hpp - SYCL kernel_bundle related enums -----==//
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 namespace sycl {
12 inline namespace _V1 {
13 
14 enum class bundle_state : char {
15  input = 0,
16  object = 1,
17  executable = 2,
19 };
20 
21 namespace ext::oneapi::experimental {
22 
23 enum class source_language : int { opencl = 0, spirv = 1, sycl = 2 /* cuda */ };
24 
25 // opencl versions
26 struct cl_version {
27  unsigned major : 10;
28  unsigned minor : 10;
29  unsigned patch : 12;
30 };
31 
32 inline constexpr cl_version opencl_c_1_0 = {1, 0, 0};
33 inline constexpr cl_version opencl_c_1_1 = {1, 1, 0};
34 inline constexpr cl_version opencl_c_1_2 = {1, 2, 0};
35 inline constexpr cl_version opencl_c_2_0 = {2, 0, 0};
36 inline constexpr cl_version opencl_c_3_0 = {3, 0, 0};
37 
38 } // namespace ext::oneapi::experimental
39 
40 } // namespace _V1
41 } // namespace sycl
Definition: access.hpp:18