[clinfo] 21/55: Also check default devices in clCreateContextFromType

Andreas Beckmann anbe at moszumanska.debian.org
Sat Jan 13 14:40:00 UTC 2018


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository clinfo.

commit 89578e4ec58899dcab8c3b393851c7411ad23833
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Thu Feb 9 23:44:54 2017 +0100

    Also check default devices in clCreateContextFromType
---
 src/clinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index e2a8d1b..bbdb312 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -2341,7 +2341,7 @@ void checkNullCtxFromType(void)
 	ALLOC(devs, ndevs, "context devices");
 
 	current_function = __func__;
-	for (t = 2; t < devtype_count; ++t) { /* we skip 0 and _DEFAULT */
+	for (t = 1; t < devtype_count; ++t) { /* we skip 0 */
 		current_param = device_type_raw_str[t];
 
 		sprintf(strbuf, "clCreateContextFromType(NULL, %s)", current_param);

-- 
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