[llvm-bugs] [Bug 40603] New: Double precision not working with -cl-std=c++

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 5 04:35:38 PST 2019


            Bug ID: 40603
           Summary: Double precision not working with -cl-std=c++
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangbugs at nondot.org
          Reporter: drohr at jwdt.org
                CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org

Usage of double precision floating point works with command line argument
-cl-std=CL2.0 but not with -cl-std=c++.
Compiling with -cl-std=c++ yields the following error:
error: use of type 'double' requires cl_khr_fp64 extension to be enabled
However, enabling the cl_khr_fp64 extensions yields:
warning: unsupported OpenCL extension 'cl_khr_fp64' - ignoring
For reference: the cl_khr_fp64 extensions works when I set a different -cl-std,
e.g. CL2.0

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190205/6ac2d584/attachment.html>

More information about the llvm-bugs mailing list