[clinfo] 110/148: Fix device extension identification for double
Andreas Beckmann
anbe at moszumanska.debian.org
Mon Nov 17 14:09:53 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 caf656fe5a521a923f75b650c99b5b67a3fc5f1d
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Thu Nov 6 10:31:38 2014 +0100
Fix device extension identification for double
---
src/clinfo.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/clinfo.c b/src/clinfo.c
index 32caeec..d6a0992 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -417,11 +417,11 @@ void identify_device_extensions(const char *extensions, struct device_info_check
char *has;
CHECK_EXT(half, cl_khr_fp16);
- CHECK_EXT(double, cl_khr_fp64);
CHECK_EXT(spir, cl_khr_spir);
- if (dev_has_double(chk))
+ CHECK_EXT(double, cl_khr_fp64);
+ if (!dev_has_double(chk))
CHECK_EXT(double, cl_amd_fp64);
- if (dev_has_double(chk))
+ if (!dev_has_double(chk))
CHECK_EXT(double, cl_APPLE_fp64_basic_ops);
CHECK_EXT(nv, cl_nv_device_attribute_query);
CHECK_EXT(amd, cl_amd_device_attribute_query);
--
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