Enable cl_khr_fp64 extension for OpenCL stdlib header
authorSimon Richter <Simon.Richter@hogyros.de>
Wed, 19 Jun 2013 10:17:56 +0000 (12:17 +0200)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 21 Jun 2013 06:48:00 +0000 (14:48 +0800)
This allows the stdlib header to define overloads for doubles.

Signed-off-by: Simon Richter <Simon.Richter@hogyros.de>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/ocl_stdlib.h

index 7d3bf65..386494b 100644 (file)
@@ -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