DPC++ Runtime
Runtime libraries for oneAPI DPC++
opencl.hpp
Go to the documentation of this file.
1 //==---------------- opencl.hpp - SYCL OpenCL backend ----------------------==//
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 <sycl/detail/export.hpp> // for __SYCL_EXPORT
12 #include <sycl/device.hpp> // for device
13 #include <sycl/platform.hpp> // for platform
14 
15 #include <string> // for string
16 #include <type_traits> // for enable_if_t
17 
18 namespace sycl {
19 inline namespace _V1 {
20 namespace opencl {
21 __SYCL_EXPORT bool has_extension(const sycl::platform &SyclPlatform,
22  const std::string &Extension);
23 __SYCL_EXPORT bool has_extension(const sycl::device &SyclDevice,
24  const std::string &Extension);
25 } // namespace opencl
26 } // namespace _V1
27 } // namespace sycl
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
Definition: device.hpp:64
Encapsulates a SYCL platform on which kernels may be executed.
Definition: platform.hpp:99
bool has_extension(const sycl::platform &SyclPlatform, const std::string &Extension)
Definition: opencl.cpp:25
Definition: access.hpp:18