<div dir="ltr">Hi there,<div><br></div><div>I'm using clang to compile OpenCL kernels to PTX so that they can be run on an architectural simulator.  The simulator is only compatible with ptx23 not ptx30 or ptx31.</div><div><br></div><div>I'm compiling the kernels as follows:</div><div><i><b>SRC=VectorAdd.cl</b></i></div><div><i><b>DEST=VectorAdd.ptx</b></i></div><div><i><b><br></b></i></div><div><i><b>clang -Dcl_clang_storage_class_specifiers -isystem libclc/generic/include -include clc/clc.h -target nvptx-unknown-nvcl -xcl $SRC -emit-llvm -S -o $DEST.ll<br></b></i></div><div><i><b><br></b></i></div><div><i><b>opt -S -O3 -loop-unroll $DEST.ll -o $DEST.opt.ll</b></i></div><div><i><b><br></b></i></div><div><i><b>llc -mcpu=sm_20 -mattr=+ptx30 $DEST.opt.ll -o $DEST"</b></i></div><div><i><b><br></b></i></div><div>The following code works to compile the kernel to ptx30, but when I attempt to change -mattr=+ptx30 to -mattr=+ptx23, I get the following warning:</div><div><br></div><div><div><i><b>'+ptx23' is not a recognized feature for this target (ignoring feature)</b></i></div><div><i><b>'+ptx23' is not a recognized feature for this target (ignoring feature)</b></i></div></div><div><i><b><br></b></i></div><div>Is there a way to around this warning so that ptx23 code is generated?</div><div><br></div><div>I am using the Ubuntu 14.04 aptitude packages for libclc-dev, libclc-ptx, clang, and llvm.</div><div>Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)</div><div><br></div><div><br></div><div>Thanks again for your time and let me know if you need further information.</div><div><br></div><div>Regards,</div><div>Alex</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alex Breslow<div><br></div></div></div>
</div></div>