From e539a731104b2b0f812ee708462f39febf8d3f65 Mon Sep 17 00:00:00 2001 From: Bob McMillan Date: Tue, 1 Mar 2022 15:20:05 -0800 Subject: [PATCH] Update reference spec and increase msgbuffer size so log message are displayed Newer Intel GPUs fail tests and run if the refrence in clBuildProgram is "-cl-std=CL1.1" set it to "-cl-std=CL1.2". msgbuffer is to small to display opencl build errors. --- common/logstuff.cpp | 2 +- rc5-72/opencl/ocl_common.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/logstuff.cpp b/common/logstuff.cpp index e3aa6ca2b..f53788b30 100644 --- a/common/logstuff.cpp +++ b/common/logstuff.cpp @@ -493,7 +493,7 @@ static void InternalLogMail( const char *msgbuffer, unsigned int msglen, int /*f // a (va_list *) instead to avoid this problem void LogWithPointer( int loggingTo, const char *format, va_list *arglist ) { - char msgbuffer[1024]; //min 1024!!, but also think of other OSs stack!! + char msgbuffer[32000]; //min 1024!!, but also think of other OSs stack!! unsigned int msglen = 0, sel; char *buffptr, *obuffptr; int old_loggingTo = loggingTo; diff --git a/rc5-72/opencl/ocl_common.cpp b/rc5-72/opencl/ocl_common.cpp index e45dda4af..3a78ecf02 100644 --- a/rc5-72/opencl/ocl_common.cpp +++ b/rc5-72/opencl/ocl_common.cpp @@ -240,7 +240,7 @@ bool BuildCLProgram(ocl_context_t *cont, const char* programText, const char *ke if (status == CL_SUCCESS) { //status = clBuildProgram(cont->program, 1, &cont->deviceID, NULL, NULL, NULL); - status = clBuildProgram(cont->program, 1, &cont->deviceID, "-cl-std=CL1.1", NULL, NULL); + status = clBuildProgram(cont->program, 1, &cont->deviceID, "-cl-std=CL1.2", NULL, NULL); } if (ocl_diagnose(status, "building cl program", cont) != CL_SUCCESS) {