[libclc] 14/58: math: Fix log2 vectorization on non-fp64 hw
Andreas Boll
aboll-guest at moszumanska.debian.org
Thu Oct 6 08:16:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
aboll-guest pushed a commit to branch master
in repository libclc.
commit c59e018ed01a75a8da1260f8fe28d59ee961c339
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Tue Feb 9 22:17:42 2016 +0000
math: Fix log2 vectorization on non-fp64 hw
reviewer: tstellard
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@260301 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/lib/math/log2.cl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/generic/lib/math/log2.cl b/generic/lib/math/log2.cl
index df6eeb2..8776a80 100644
--- a/generic/lib/math/log2.cl
+++ b/generic/lib/math/log2.cl
@@ -34,4 +34,6 @@
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, log2, float);
+#ifdef cl_khr_fp64
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, log2, double);
+#endif // cl_khr_fp64
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list