Functions | |
void | handleInvalidWorkGroupSize (const device_impl &DeviceImpl, pi_kernel Kernel, const NDRDescT &NDRDesc) |
void | handleInvalidWorkItemSize (const device_impl &DeviceImpl, const NDRDescT &NDRDesc) |
void | handleInvalidValue (const device_impl &DeviceImpl, const NDRDescT &NDRDesc) |
void | handleErrorOrWarning (pi_result, const device_impl &, pi_kernel, const NDRDescT &) |
Analyzes error code and arguments of piEnqueueKernelLaunch to emit user-friendly exception describing the problem. More... | |
void sycl::_V1::detail::enqueue_kernel_launch::handleErrorOrWarning | ( | pi_result | , |
const device_impl & | , | ||
pi_kernel | , | ||
const NDRDescT & | |||
) |
Analyzes error code and arguments of piEnqueueKernelLaunch to emit user-friendly exception describing the problem.
This function is expected to be called only for non-success error codes, i.e. the first argument must not be equal to PI_SUCCESS.
This function actually never returns and always throws an exception with error description.
Definition at line 350 of file error_handling.cpp.
References sycl::_V1::detail::codeToString(), sycl::_V1::detail::device_impl::getPlugin(), handleInvalidValue(), handleInvalidWorkGroupSize(), and handleInvalidWorkItemSize().
Referenced by sycl::_V1::detail::enqueueImpCommandBufferKernel(), and sycl::_V1::detail::enqueueImpKernel().
void sycl::_V1::detail::enqueue_kernel_launch::handleInvalidValue | ( | const device_impl & | DeviceImpl, |
const NDRDescT & | NDRDesc | ||
) |
Definition at line 325 of file error_handling.cpp.
References sycl::_V1::detail::codeToString(), sycl::_V1::detail::NDRDescT::Dims, sycl::_V1::detail::device_impl::getHandleRef(), sycl::_V1::detail::device_impl::getPlugin(), sycl::_V1::detail::NDRDescT::GlobalSize, sycl::_V1::detail::NDRDescT::LocalSize, PI_EXT_ONEAPI_DEVICE_INFO_MAX_WORK_GROUPS_3D, and piDeviceGetInfo().
Referenced by handleErrorOrWarning().
void sycl::_V1::detail::enqueue_kernel_launch::handleInvalidWorkGroupSize | ( | const device_impl & | DeviceImpl, |
pi_kernel | Kernel, | ||
const NDRDescT & | NDRDesc | ||
) |
Definition at line 23 of file error_handling.cpp.
References sycl::_V1::detail::codeToString(), sycl::_V1::platform::get_backend(), sycl::_V1::detail::device_impl::get_info(), sycl::_V1::detail::device_impl::get_platform(), sycl::_V1::detail::device_impl::getHandleRef(), sycl::_V1::detail::device_impl::getPlugin(), sycl::_V1::detail::NDRDescT::GlobalSize, sycl::_V1::kernel_not_supported, sycl::_V1::detail::NDRDescT::LocalSize, sycl::_V1::make_error_code(), PI_DEVICE_INFO_MAX_WORK_GROUP_SIZE, PI_DEVICE_INFO_MAX_WORK_ITEM_SIZES, PI_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE, PI_KERNEL_GROUP_INFO_NUM_REGS, PI_KERNEL_GROUP_INFO_WORK_GROUP_SIZE, PI_KERNEL_INFO_PROGRAM, PI_PROGRAM_BUILD_INFO_OPTIONS, piDeviceGetInfo(), piKernelGetGroupInfo(), piKernelGetInfo(), and piProgramGetBuildInfo().
Referenced by handleErrorOrWarning().
void sycl::_V1::detail::enqueue_kernel_launch::handleInvalidWorkItemSize | ( | const device_impl & | DeviceImpl, |
const NDRDescT & | NDRDesc | ||
) |
Definition at line 304 of file error_handling.cpp.
References sycl::_V1::detail::NDRDescT::Dims, sycl::_V1::detail::device_impl::getHandleRef(), sycl::_V1::detail::device_impl::getPlugin(), sycl::_V1::detail::NDRDescT::LocalSize, PI_DEVICE_INFO_MAX_WORK_ITEM_SIZES, and piDeviceGetInfo().
Referenced by handleErrorOrWarning().