File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,17 @@ static bool isRaiseError()
153153}
154154#endif
155155
156+ static void onOpenCLKernelBuildError ()
157+ {
158+ // NB: no need to cache this value
159+ bool value = cv::utils::getConfigurationParameterBool (" OPENCV_OPENCL_ABORT_ON_BUILD_ERROR" , false );
160+ if (value)
161+ {
162+ fprintf (stderr, " Abort on OpenCL kernel build failure!\n " );
163+ abort ();
164+ }
165+ }
166+
156167#if CV_OPENCL_TRACE_CHECK
157168static inline
158169void traceOpenCLCheck (cl_int status, const char * message)
@@ -4593,6 +4604,12 @@ struct Program::Impl
45934604 CV_OCL_DBG_CHECK (clReleaseProgram (handle));
45944605 handle = NULL ;
45954606 }
4607+ if (retval != CL_SUCCESS &&
4608+ sourceName_ != " dummy" // used for testing of compilation flags
4609+ )
4610+ {
4611+ onOpenCLKernelBuildError ();
4612+ }
45964613 }
45974614#if CV_OPENCL_VALIDATE_BINARY_PROGRAMS
45984615 if (handle && CV_OPENCL_VALIDATE_BINARY_PROGRAMS_VALUE)
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ IF %ERRORLEVEL% EQU 0 (
2323 GOTO :PYTHON_FOUND
2424)
2525
26+ CALL :QUERY_PYTHON 3.10
27+ IF %ERRORLEVEL% EQU 0 GOTO :PYTHON_FOUND
2628CALL :QUERY_PYTHON 3.9
2729IF %ERRORLEVEL% EQU 0 GOTO :PYTHON_FOUND
2830CALL :QUERY_PYTHON 3.8
You can’t perform that action at this time.
0 commit comments