<div dir="ltr"><div>Dear all,</div><div><br></div><div>I have had a problem when using clang to transform an OpenCL code to a bytecode. When i use the command "clang" like:</div><div> clang -cc1 -triple spir64 -emit-llvm-bc -finclude-default-header -cl-single-precision-constant <a href="http://example.cl">example.cl</a> -o example.bc</div><div><br></div><div>I get back, in many programs, an undeclared identifier error, for example:</div><div><br></div><div>../programs/nsgminer/scrypt.cl:764:30: error: use of undeclared identifier 'LOOKUP_GAP'<br>    const uint ySIZE = (1024/LOOKUP_GAP+(1024%LOOKUP_GAP>0));</div><div><br></div><div>Does someone know if I can solve this problem,  or I just cannot transform this kind of OpenCL code into bytecode format?<br></div></div>