[libclc] r294915 - Add the correct prefixes to the cl_khr_fp64 pragma

Jeroen Ketema via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 12 13:31:41 PST 2017


Author: jketema
Date: Sun Feb 12 15:31:41 2017
New Revision: 294915

URL: http://llvm.org/viewvc/llvm-project?rev=294915&view=rev
Log:
Add the correct prefixes to the cl_khr_fp64 pragma

Modified:
    libclc/trunk/generic/include/clc/shared/vstore.h

Modified: libclc/trunk/generic/include/clc/shared/vstore.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/shared/vstore.h?rev=294915&r1=294914&r2=294915&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/shared/vstore.h (original)
+++ libclc/trunk/generic/include/clc/shared/vstore.h Sun Feb 12 15:31:41 2017
@@ -29,7 +29,7 @@
     _CLC_VECTOR_VSTORE_PRIM3(_half, half, float)
 
 #ifdef cl_khr_fp64
-#pragma cl_khr_fp64: enable
+#pragma OPENCL EXTENSION cl_khr_fp64: enable
   _CLC_VECTOR_VSTORE_PRIM1(double)
   _CLC_VECTOR_VSTORE_PRIM3(_half, half, double)
   _CLC_VSTORE_DECL(_half, half, double, , __private)




More information about the cfe-commits mailing list