DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::enqueue_kernel_launch Namespace Reference

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...
 

Function Documentation

◆ handleErrorOrWarning()

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().

◆ handleInvalidValue()

◆ handleInvalidWorkGroupSize()

◆ handleInvalidWorkItemSize()

void sycl::_V1::detail::enqueue_kernel_launch::handleInvalidWorkItemSize ( const device_impl DeviceImpl,
const NDRDescT NDRDesc 
)