https://bugs.llvm.org/show_bug.cgi?id=40603

            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: unassignedclangb...@nondot.org
          Reporter: dr...@jwdt.org
                CC: anastasia.stul...@arm.com, llvm-bugs@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
[-Wignored-pragmas]
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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to