diff --git a/src/detection/opencl/opencl.c b/src/detection/opencl/opencl.c index ed71afca0..0626dd4d3 100644 --- a/src/detection/opencl/opencl.c +++ b/src/detection/opencl/opencl.c @@ -43,7 +43,8 @@ static const char* openCLHandleData(OpenCLData* data, FFOpenCLResult* result) if (data->ffclGetPlatformInfo(platforms[iplat], CL_PLATFORM_VERSION, sizeof(buffer), buffer, NULL) != CL_SUCCESS) return "clGetPlatformInfo() failed"; - if (iplat == 0) + // Use the newest supported OpenCL version + if (ffStrbufCompS(&result->version, buffer) < 0) { const char* versionPretty = buffer; if(ffStrStartsWithIgnCase(buffer, "OpenCL "))