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 {
34
void
handleErrorOrWarning
(
pi_result
,
pi_kernel_group_info
,
const
PluginPtr
&);
35
}
// namespace kernel_get_group_info
36
37
}
// namespace detail
38
}
// namespace _V1
39
}
// namespace sycl
cg.hpp
device_impl.hpp
sycl::_V1::detail::enqueue_kernel_launch::handleErrorOrWarning
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...
Definition:
error_handling.cpp:350
sycl::_V1::detail::kernel_get_group_info::handleErrorOrWarning
void handleErrorOrWarning(pi_result Error, pi_kernel_group_info Descriptor, const PluginPtr &Plugin)
Analyzes error code of piKernelGetGroupInfo.
Definition:
error_handling.cpp:419
sycl::_V1::detail::PluginPtr
std::shared_ptr< plugin > PluginPtr
Definition:
pi.hpp:48
sycl
Definition:
access.hpp:18
pi.h
_pi_result
_pi_result
Definition:
pi.h:216
_pi_kernel_group_info
_pi_kernel_group_info
Definition:
pi.h:505
_pi_kernel
Definition:
pi_cuda.hpp:72
source
detail
error_handling
error_handling.hpp
Generated by
1.9.1