Skip to content

Commit 7e89d85

Browse files
committed
opencl: Suppress warning on ocl-icd 2.2.10+
A hack to compare versions. Since we're only dealing with versions of 2.y.z and 1.x and only providing informative warnings this hack should do the work for now without introducing complicated version comparison routines.
1 parent e900ef1 commit 7e89d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opencl_depth_packet_processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ class OpenCLDepthPacketProcessorImpl: public WithPerfLogging
271271
char buf[16];
272272
if (clGetICDLoaderInfoOCLICD(CL_ICDL_VERSION, sizeof(buf), buf, NULL) == CL_SUCCESS)
273273
{
274-
if (strcmp(buf, "2.2.4") < 0)
274+
if (strcmp(buf, "2.2.4") < 0 && strlen(buf) <= 5)
275275
LOG_WARNING << "Your ocl-icd has deadlock bugs. Update to 2.2.4+ is recommended.";
276276
}
277277
}

0 commit comments

Comments
 (0)