DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::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 cl::sycl::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 295 of file enqueue_kernel.cpp.

References cl::sycl::detail::plugin::checkPiResult(), cl::sycl::detail::codeToString(), cl::sycl::detail::device_impl::getPlugin(), handleInvalidValue(), handleInvalidWorkGroupSize(), and handleInvalidWorkItemSize().

Referenced by cl::sycl::detail::enqueueImpKernel().

◆ handleInvalidValue()

◆ handleInvalidWorkGroupSize()

◆ handleInvalidWorkItemSize()