[clinfo] 54/148: Show supported SPIR versions for cl_khr_spir devices

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:45 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 3b6bbcb35fff0dba188ebeeaf856e5625a124510
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Tue Aug 12 12:58:25 2014 +0200

    Show supported SPIR versions for cl_khr_spir devices
---
 src/clinfo.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/clinfo.c b/src/clinfo.c
index 18bf1a0..4657cbe 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -213,9 +213,11 @@ printDeviceInfo(cl_uint d)
 	char has_image2d_buffer[27] = {0};
 	char has_intel_local_thread[30] = {0};
 	char has_altera_dev_temp[29] = {0};
+	char has_spir[12] = {0};
 
 	// device supports OpenCL 1.2
 	cl_bool is_12 = CL_FALSE;
+	// device is a GPU
 	cl_bool is_gpu = CL_FALSE;
 
 #define KB UINT64_C(1024)
@@ -296,6 +298,7 @@ printDeviceInfo(cl_uint d)
 		char *has;
 		CHECK_EXT(half, cl_khr_fp16);
 		CHECK_EXT(double, cl_khr_fp64);
+		CHECK_EXT(spir, cl_khr_spir);
 		if (!*has_double)
 			CHECK_EXT(double, cl_amd_fp64);
 		CHECK_EXT(nv, cl_nv_device_attribute_query);
@@ -665,6 +668,9 @@ printDeviceInfo(cl_uint d)
 	if (*has_nv) {
 		BOOL_PARAM(KERNEL_EXEC_TIMEOUT_NV, INDENT "NVIDIA kernel execution timeout");
 	}
+	if (*has_spir) {
+		SHOW_STRING(clGetDeviceInfo, CL_DEVICE_SPIR_VERSIONS, INDENT "SPIR versions", dev);
+	}
 
 	if (is_12) {
 		BOOL_PARAM(PREFERRED_INTEROP_USER_SYNC, "Prefer user sync for interops");

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