mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
core/ocl: change error processing for missed function
This commit is contained in:
parent
3542da7167
commit
915fb632fd
@ -118,7 +118,9 @@ static void* openclamdblas_check_fn(int ID)
|
||||
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;
|
||||
|
@ -118,7 +118,9 @@ static void* openclamdfft_check_fn(int ID)
|
||||
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;
|
||||
|
@ -201,7 +201,9 @@ static void* opencl_check_fn(int ID)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user