[PATCH] D100980: [OpenCL] Allow use of double type without extension pragma

Anton Zabaznov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 22 04:02:11 PDT 2021


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



More information about the cfe-commits mailing list