summaryrefslogtreecommitdiff
path: root/generic/lib/geometric/normalize.cl
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-05-29 13:35:54 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-05-29 13:35:54 +0000
commit65f1c28f5dab19b12b3a00abd558bed9640901ba (patch)
tree911c2a3dac8ff84fd397a107e4a76332c27f4811 /generic/lib/geometric/normalize.cl
parentf69df75b298de2fb5b63e59ee4911d14cc6e462b (diff)
Enable cl_khr_fp64 when building the library, and fix several bugs
uncovered when doing so. git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@157617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/lib/geometric/normalize.cl')
-rw-r--r--generic/lib/geometric/normalize.cl4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/lib/geometric/normalize.cl b/generic/lib/geometric/normalize.cl
index 95d327c..e5a521f 100644
--- a/generic/lib/geometric/normalize.cl
+++ b/generic/lib/geometric/normalize.cl
@@ -1,4 +1,8 @@
#include <clc/clc.h>
+#ifdef cl_khr_fp64
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
+#endif
+
#define BODY "normalize.inc"
#include <clc/geometric/floatn.inc>