[clinfo] 80/148: Add forgotten CL_DEVICE_VENDOR_ID

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:49 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 0d0d26b5cc212e6ebf44dfc3f41ff7d6e6a025c8
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Sun Oct 26 21:18:04 2014 +0100

    Add forgotten CL_DEVICE_VENDOR_ID
---
 src/clinfo.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/clinfo.c b/src/clinfo.c
index 6a19ec2..946fc05 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -263,6 +263,14 @@ printDeviceInfo(cl_uint d)
 		printf(I1_STR "%u" sfx "\n", name, uintval); \
 	} \
 } while (0)
+#define HEX_PARAM(param, name) do { \
+	GET_PARAM(param, uintval); \
+	if (had_error) { \
+		printf(I1_STR "%s\n", name, strbuf); \
+	} else { \
+		printf(I1_STR "0x%x\n", name, uintval); \
+	} \
+} while (0)
 #define LONG_PARAM(param, name, sfx) do { \
 	GET_PARAM(param, ulongval); \
 	if (had_error) { \
@@ -309,6 +317,7 @@ printDeviceInfo(cl_uint d)
 	// device name
 	STR_PARAM(NAME, "Name");
 	STR_PARAM(VENDOR, "Vendor");
+	HEX_PARAM(VENDOR_ID, "Device Vendor ID");
 	STR_PARAM(VERSION, "Version");
 	is_12 = !!(strstr(strbuf, "OpenCL 1.2"));
 	SHOW_STRING(clGetDeviceInfo, CL_DRIVER_VERSION, "Driver Version", dev);

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