Commit 4f5fd889 authored by Charlie Fenton's avatar Charlie Fenton Committed by Oliver Bock

OpenCL: Eliminate spurious error message when an OpenCL platform exists but...

OpenCL: Eliminate spurious error message when an OpenCL platform exists but the computer has no corresponding devices
parent 93fba951
......@@ -7709,8 +7709,15 @@ David 14 Dec 2012
tools/
upgrade
Charlie 13 Dec 2012
Charlie 14 Dec 2012
- Mgr: Fix delay displaying notices.
clientgui/
NoticeListCtrl.cpp
Charlie 14 Dec 2012
- OpenCL: Eliminate spurious error message when an OpenCL platform exists
but the computer has no corresponding devices.
client/
gpu_opencl.cpp
......@@ -192,6 +192,9 @@ void COPROCS::get_opencl(
platforms[platform_index], CL_DEVICE_TYPE_GPU,
MAX_COPROC_INSTANCES, devices, &num_devices
);
if (ciErrNum == CL_DEVICE_NOT_FOUND) continue; // No devices
if (ciErrNum != CL_SUCCESS) {
msg_printf(0, MSG_INFO,
"Couldn't get Device IDs for platform #%d: error %d", platform_index, ciErrNum
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment