[clinfo] 12/148: Atomic counters EXT

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:39 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 f0e096a869396509b70d993c1b75ec3e09ee1c9f
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Thu Jun 6 17:04:36 2013 +0200

    Atomic counters EXT
---
 src/clinfo.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/clinfo.c b/src/clinfo.c
index 839a3c3..058cc54 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -138,6 +138,7 @@ printDeviceInfo(cl_uint d)
 	char has_double[12] = {0};
 	char has_nv[29] = {0};
 	char has_fission[22] = {0};
+	char has_atomic_counters[26] = {0};
 
 	// device supports OpenCL 1.2
 	cl_bool is_12 = 0;
@@ -220,6 +221,9 @@ printDeviceInfo(cl_uint d)
 			CHECK_EXT(double, cl_amd_fp64);
 		CHECK_EXT(nv, cl_nv_device_attribute_query);
 		CHECK_EXT(fission, cl_ext_device_fission);
+		CHECK_EXT(atomic_counters, cl_ext_atomic_counters_64);
+		if (!*has_atomic_counters)
+			CHECK_EXT(atomic_counters, cl_ext_atomic_counters_32);
 	}
 
 
@@ -476,6 +480,8 @@ printDeviceInfo(cl_uint d)
 	}
 
 	MEM_PARAM(MAX_PARAMETER_SIZE, "Max size of kernel argument");
+	if (*has_atomic_counters)
+		INT_PARAM(MAX_ATOMIC_COUNTERS_EXT, "Max number of atomic counters",);
 
 	// queue and kernel capabilities
 	printf("  %-46s:\n", "Queue properties support");

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