[cfe-dev] Flag -cl-ext for OpenCL input
Enrique González via cfe-dev
cfe-dev at lists.llvm.org
Wed May 20 03:04:41 PDT 2020
Hello everyone,
I am trying to use clang for a group of OpenCL codes to transform all of
them into bytecode. I am using the following command:
clang -x cl -cl-std=CL2.0 -emit-llvm -target spir64 -Xclang
-finclude-default-header -cl-single-precision-constant INPUT.cl -o INPUT.bc
I have tried to use the flag "-cl-ext=+ cl_khr_fp64 " instead of the flag
"-cl-std =CL2.0 " to add the OpenCL extension cl_khr_fp64, but it does not
work.
Any suggestion about the problem?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200520/77a627a8/attachment-0001.html>
More information about the cfe-dev
mailing list