DPC++ Runtime
Runtime libraries for oneAPI DPC++
kernel_compiler_opencl.hpp
Go to the documentation of this file.
1 //==-- kernel_compiler_opencl.hpp OpenCL kernel compilation support -==//
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 
12 #include <sycl/detail/export.hpp> // for __SYCL_EXPORT
13 #include <sycl/device.hpp>
14 
15 #include <string>
16 #include <vector>
17 
18 namespace sycl {
19 inline namespace _V1 {
20 namespace ext::oneapi::experimental {
21 namespace detail {
22 
23 using spirv_vec_t = std::vector<uint8_t>;
24 spirv_vec_t OpenCLC_to_SPIRV(const std::string &Source,
25  const std::vector<uint32_t> &IPVersionVec,
26  const std::vector<std::string> &UserArgs,
27  std::string *LogPtr);
28 
30 
31 bool OpenCLC_Feature_Available(const std::string &Feature, uint32_t IPVersion);
32 
34  const ext::oneapi::experimental::cl_version &Version, uint32_t IPVersion);
35 
37  const std::string &Name, ext::oneapi::experimental::cl_version *VersionPtr,
38  uint32_t IPVersion);
39 
40 std::string OpenCLC_Profile(uint32_t IPVersion);
41 
42 } // namespace detail
43 } // namespace ext::oneapi::experimental
44 
45 } // namespace _V1
46 } // namespace sycl
bool OpenCLC_Feature_Available(const std::string &Feature, uint32_t IPVersion)
bool OpenCLC_Supports_Extension(const std::string &Name, ext::oneapi::experimental::cl_version *VersionPtr, uint32_t IPVersion)
spirv_vec_t OpenCLC_to_SPIRV(const std::string &Source, const std::vector< uint32_t > &IPVersionVec, const std::vector< std::string > &UserArgs, std::string *LogPtr)
bool OpenCLC_Supports_Version(const ext::oneapi::experimental::cl_version &Version, uint32_t IPVersion)
Definition: access.hpp:18