<div dir="ltr"><div>Hello everyone,</div><div><br></div><div>I am using Clang 11 for an OpenCL-SPIRV project. <br></div><div><br></div><div>When I try to convert some OpenCL programs into bytecode, I receive the following error message in some of them:</div><div>'../Programs/kernels/longest/longest_0038.cl:19:5: error: use of type 'double' requires cl_khr_fp64 extension to be enabled<br> double const t = 2 * (h + 2);'</div><div><br></div><div>Also, I receive some warnings like: <br></div><div>'../Programs/kernels/longest/longest_0038.cl:28:19:
warning: incompatible pointer to integer conversion initializing 'const
__private int' with an expression of type '__global int *'
[-Wint-conversion]<br> const int v = a + f * 2 + l % v;'</div><div><br></div><div>This
OpenCL codes are automatically generated by a tool called "clgen" from
github, that I am using as my OpenCL source code database.</div><div><br></div><div>This
errors and warnings are given because the code is not well written or
because I need to use more flags in my clang command? <br></div><div><br></div><div>I use this command to convert OpenCL programs into bytecode:</div><div>'clang
-cc1 -triple spir64 -emit-llvm-bc -finclude-default-header
-cl-single-precision-constant -disable-llvm-passes INPUT.cl -o INPUT.bc'</div><div><br></div><div>Thanks in advance.</div></div>