azabaznov added a comment.

Same as for https://reviews.llvm.org/D100984, `cl_khr_fp64` wasn't always core 
and thus it requires pragma for OpenCL C < 1.2 versions.

//9.3 Double Precision Floating-Point, OpenCL C 1.0// 
(https://www.khronos.org/registry/OpenCL/specs/opencl-1.0.pdf):

  OpenCL 1.0 adds support for double precision floating-point as an optional 
extension. An application that wants to use double will need to include the 
#pragma OPENCL EXTENSION cl_khr_fp64 : enable directive before any double 
precision data type is declared in the kernel code.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100980/new/

https://reviews.llvm.org/D100980

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to