void* func = CV_CL_GET_PROC_ADDRESS(e->fnName);
if (!func)
{
- CV_Error(cv::Error::OpenCLApiCallError, cv::format("OpenCL AMD BLAS function is not available: [%s]", e->fnName));
+ throw cv::Exception(cv::Error::OpenCLApiCallError,
+ cv::format("OpenCL AMD BLAS function is not available: [%s]", e->fnName),
+ CV_Func, __FILE__, __LINE__);
}
*(e->ppFn) = func;
return func;
void* func = CV_CL_GET_PROC_ADDRESS(e->fnName);
if (!func)
{
- CV_Error(cv::Error::OpenCLApiCallError, cv::format("OpenCL AMD FFT function is not available: [%s]", e->fnName));
+ throw cv::Exception(cv::Error::OpenCLApiCallError,
+ cv::format("OpenCL AMD FFT function is not available: [%s]", e->fnName),
+ CV_Func, __FILE__, __LINE__);
}
*(e->ppFn) = func;
return func;
void* func = CV_CL_GET_PROC_ADDRESS(e->fnName);
if (!func)
{
- CV_Error(cv::Error::OpenCLApiCallError, cv::format("OpenCL function is not available: [%s]", e->fnName));
+ throw cv::Exception(cv::Error::OpenCLApiCallError,
+ cv::format("OpenCL function is not available: [%s]", e->fnName),
+ CV_Func, __FILE__, __LINE__);
}
*(e->ppFn) = func;
return func;