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 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().
void cl::sycl::detail::enqueue_kernel_launch::handleInvalidValue | ( | const device_impl & | DeviceImpl, |
const NDRDescT & | NDRDesc | ||
) |
Definition at line 270 of file enqueue_kernel.cpp.
References cl::sycl::detail::plugin::call(), cl::sycl::detail::codeToString(), Device, cl::sycl::detail::NDRDescT::Dims, cl::sycl::detail::device_impl::getHandleRef(), cl::sycl::detail::device_impl::getPlugin(), cl::sycl::detail::NDRDescT::GlobalSize, cl::sycl::detail::NDRDescT::LocalSize, PI_EXT_ONEAPI_DEVICE_INFO_MAX_WORK_GROUPS_3D, and piDeviceGetInfo().
Referenced by handleErrorOrWarning().
void cl::sycl::detail::enqueue_kernel_launch::handleInvalidWorkGroupSize | ( | const device_impl & | DeviceImpl, |
pi_kernel | Kernel, | ||
const NDRDescT & | NDRDesc | ||
) |
Definition at line 25 of file enqueue_kernel.cpp.
References cl::sycl::detail::plugin::call(), cl::sycl::detail::codeToString(), Device, cl::sycl::platform::get_backend(), cl::sycl::detail::device_impl::get_info(), cl::sycl::detail::device_impl::get_platform(), cl::sycl::detail::device_impl::getHandleRef(), cl::sycl::detail::device_impl::getPlugin(), cl::sycl::detail::NDRDescT::GlobalSize, cl::sycl::detail::NDRDescT::LocalSize, cl::sycl::opencl, 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_WORK_GROUP_SIZE, PI_KERNEL_INFO_PROGRAM, PI_PROGRAM_BUILD_INFO_OPTIONS, piDeviceGetInfo(), piKernelGetGroupInfo(), piKernelGetInfo(), and piProgramGetBuildInfo().
Referenced by handleErrorOrWarning().
void cl::sycl::detail::enqueue_kernel_launch::handleInvalidWorkItemSize | ( | const device_impl & | DeviceImpl, |
const NDRDescT & | NDRDesc | ||
) |
Definition at line 249 of file enqueue_kernel.cpp.
References cl::sycl::detail::plugin::call(), Device, cl::sycl::detail::NDRDescT::Dims, cl::sycl::detail::device_impl::getHandleRef(), cl::sycl::detail::device_impl::getPlugin(), cl::sycl::detail::NDRDescT::LocalSize, PI_DEVICE_INFO_MAX_WORK_ITEM_SIZES, and piDeviceGetInfo().
Referenced by handleErrorOrWarning().