[Beignet] *** SPAM LEVEL 4.053 *** [PATCH 1/3] Enable cl_khr_fp64 extension for OpenCL stdlib header

Simon Richter Simon.Richter at hogyros.de
Wed Jun 19 03:17:56 PDT 2013


This allows the stdlib header to define overloads for doubles.

Signed-off-by: Simon Richter <Simon.Richter at hogyros.de>
---
 backend/src/ocl_stdlib.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backend/src/ocl_stdlib.h b/backend/src/ocl_stdlib.h
index 7d3bf65..386494b 100644
--- a/backend/src/ocl_stdlib.h
+++ b/backend/src/ocl_stdlib.h
@@ -53,6 +53,8 @@ typedef unsigned int uintptr_t;
 #define private __private
 #endif
 
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
+
 /////////////////////////////////////////////////////////////////////////////
 // OpenCL built-in vector data types
 /////////////////////////////////////////////////////////////////////////////
@@ -4430,6 +4432,8 @@ DECL_IMAGE(int4, i)
 DECL_IMAGE(uint4, ui)
 DECL_IMAGE(float4, f)
 
+#pragma OPENCL EXTENSION cl_khr_fp64 : disable
+
 #undef DECL_IMAGE
 #undef DECL_READ_IMAGE
 #undef DECL_READ_IMAGE_NOSAMPLER
-- 
1.7.10.4



More information about the Beignet mailing list