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 {
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 detail
33 } // __SYCL_INLINE_VER_NAMESPACE(_V1)
34 } // namespace sycl
#define __SYCL_INLINE_VER_NAMESPACE(X)
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...
---— Error handling, matching OpenCL plugin semantics.
Definition: access.hpp:14
_pi_result
Definition: pi.h:118
Implementation of a PI Kernel for CUDA.
Definition: pi_cuda.hpp:813