[cfe-dev] Flag -cl-ext for OpenCL input
Sachkov, Alexey via cfe-dev
cfe-dev at lists.llvm.org
Wed May 20 07:24:04 PDT 2020
Hi Enrique,
Could you please clarify a bit what “does not work.” means exactly?
Have you faced some compilation error, or emitted LLVM IR is different from what you expected to see?
From: cfe-dev <cfe-dev-bounces at lists.llvm.org> On Behalf Of Enrique Gonzalez via cfe-dev
Sent: Wednesday, May 20, 2020 1:05 PM
To: cfe-dev at lists.llvm.org
Subject: [cfe-dev] Flag -cl-ext for OpenCL input
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.
--------------------------------------------------------------------
Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200520/990b2317/attachment.html>
More information about the cfe-dev
mailing list