Skip to content

Commit 92925e8

Browse files
committed
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2 parents 43c04c2 + 06b74c8 commit 92925e8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

modules/core/src/ocl.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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
157168
static inline
158169
void 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)

samples/_winpack_run_python_sample.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
2628
CALL :QUERY_PYTHON 3.9
2729
IF %ERRORLEVEL% EQU 0 GOTO :PYTHON_FOUND
2830
CALL :QUERY_PYTHON 3.8

0 commit comments

Comments
 (0)