[clinfo] 42/148: Allow a platform to have no devices
Andreas Beckmann
anbe at moszumanska.debian.org
Mon Nov 17 14:09:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch clinfo
in repository clinfo.
commit 342fcfbf351236c58d7648441de5ad3add0c295c
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Tue Apr 15 23:17:36 2014 +0200
Allow a platform to have no devices
---
src/clinfo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/clinfo.c b/src/clinfo.c
index 9e70ff3..887c12b 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -86,7 +86,8 @@ printPlatformInfo(cl_uint p)
#undef PARAM
error = clGetDeviceIDs(pid, CL_DEVICE_TYPE_ALL, 0, NULL, num_devs + p);
- CHECK_ERROR("number of devices");
+ if (error != CL_DEVICE_NOT_FOUND)
+ CHECK_ERROR("number of devices");
num_devs_all += num_devs[p];
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git
More information about the Pkg-opencl-commits
mailing list