<div dir="ltr">Hi,<div><br></div><div>I was trying to compile scalarProd.cu (from CUDA SDK) with the following command:</div><div><br></div><div><i><b> clang++ -I../ -I/usr/local/cuda-7.0/samples/common/inc --cuda-gpu-arch=sm_50 scalarProd.cu</b></i><br></div><div><br></div><div> but ended up with the following error:</div><div><br></div><div><div><i><b>ptxas fatal   : Unresolved extern function '__nv_mul24'</b></i></div></div><div><br></div><div>Seems to me that libdevice was not automatically linked.  I wonder what flags I need to pass to clang to have the code linked against libdevice?</div><div><br></div><div>Thanks!</div><div>Yuanfeng Peng</div></div>