[clinfo] 71/148: cl_APPLE_fp64_basic_ops

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:47 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 901c7324a4ad72c597bfc2a3408b7618660686a5
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Fri Sep 26 22:42:41 2014 +0200

    cl_APPLE_fp64_basic_ops
---
 man/clinfo.1 | 2 +-
 src/clinfo.c | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/man/clinfo.1 b/man/clinfo.1
index 1b8c8d9..3911a47 100644
--- a/man/clinfo.1
+++ b/man/clinfo.1
@@ -22,7 +22,7 @@ OpenCL 1.1, OpenCL 1.2.
 
 Supported OpenCL extensions:
 .TP 2
-.BR cl_khr_fp16 ", " cl_khr_fp64 ", " cl_amd_fp64
+.BR cl_khr_fp16 ", " cl_khr_fp64 ", " cl_amd_fp64 ", " cl_APPLE_fp64_basic_ops
 for information about support for half-precision and double-precision
 floating-point data types;
 .TP
diff --git a/src/clinfo.c b/src/clinfo.c
index e6e123f..179f750 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -217,7 +217,7 @@ printDeviceInfo(cl_uint d)
 
 	// these will hold the string from which we detected extension support
 	char has_half[12] = {0};
-	char has_double[12] = {0};
+	char has_double[24] = {0};
 	char has_nv[29] = {0};
 	char has_amd[30] = {0};
 	char has_fission[22] = {0};
@@ -334,6 +334,8 @@ printDeviceInfo(cl_uint d)
 		CHECK_EXT(spir, cl_khr_spir);
 		if (!*has_double)
 			CHECK_EXT(double, cl_amd_fp64);
+		if (!*has_double)
+			CHECK_EXT(double, cl_APPLE_fp64_basic_ops);
 		CHECK_EXT(nv, cl_nv_device_attribute_query);
 		CHECK_EXT(amd, cl_amd_device_attribute_query);
 		CHECK_EXT(fission, cl_ext_device_fission);

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