DPC++ Runtime
Runtime libraries for oneAPI DPC++
kernel_compiler_sycl.hpp
Go to the documentation of this file.
1 //==-- kernel_compiler_sycl.hpp SYCL 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> // __SYCL_EXPORT
13 #include <sycl/device.hpp>
14 
15 #include <numeric> // std::accumulate
16 #include <string>
17 #include <vector>
18 
19 namespace sycl {
20 inline namespace _V1 {
21 namespace ext::oneapi::experimental {
22 namespace detail {
23 
24 using spirv_vec_t = std::vector<uint8_t>;
25 using include_pairs_t = std::vector<std::pair<std::string, std::string>>;
26 
28 SYCL_to_SPIRV(const std::string &Source, include_pairs_t IncludePairs,
29  const std::vector<std::string> &UserArgs, std::string *LogPtr,
30  const std::vector<std::string> &RegisteredKernelNames);
31 
33 
34 } // namespace detail
35 } // namespace ext::oneapi::experimental
36 
37 } // namespace _V1
38 } // namespace sycl
std::vector< std::pair< std::string, std::string > > include_pairs_t
spirv_vec_t SYCL_to_SPIRV(const std::string &SYCLSource, include_pairs_t IncludePairs, const std::vector< std::string > &UserArgs, std::string *LogPtr, const std::vector< std::string > &RegisteredKernelNames)
Definition: access.hpp:18