DPC++ Runtime
Runtime libraries for oneAPI DPC++
error_handling.hpp
Go to the documentation of this file.
1 //===-------- error_handling.hpp - SYCL error handling ---------*- C++ -*-===//
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 <detail/device_impl.hpp>
12 #include <sycl/detail/cg.hpp>
13 #include <sycl/detail/pi.h>
14 
15 namespace sycl {
16 inline namespace _V1 {
17 namespace detail {
18 
19 namespace enqueue_kernel_launch {
28 void handleErrorOrWarning(pi_result, const device_impl &, pi_kernel,
29  const NDRDescT &);
30 } // namespace enqueue_kernel_launch
31 
32 namespace kernel_get_group_info {
35 } // namespace kernel_get_group_info
36 
37 } // namespace detail
38 } // namespace _V1
39 } // namespace sycl
void handleErrorOrWarning(pi_result Error, const device_impl &DeviceImpl, pi_kernel Kernel, const NDRDescT &NDRDesc)
Analyzes error code and arguments of piEnqueueKernelLaunch to emit user-friendly exception describing...
void handleErrorOrWarning(pi_result Error, pi_kernel_group_info Descriptor, const PluginPtr &Plugin)
Analyzes error code of piKernelGetGroupInfo.
std::shared_ptr< plugin > PluginPtr
Definition: pi.hpp:48
Definition: access.hpp:18
_pi_result
Definition: pi.h:216
_pi_kernel_group_info
Definition: pi.h:505