<div dir="ltr">Could you add '-v' to command line and send me what it prints on your box?<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 11, 2016 at 3:15 PM, Jingyue Wu <span dir="ltr"><<a href="mailto:jingyue@google.com" target="_blank">jingyue@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Environment:<div>LLVM/Clang version: r257392</div><div>CUDA 7.0</div><div>Ubuntu 14.04</div><div><br></div><div>The axpy code can be found at <a href="http://llvm.org/docs/CompileCudaWithLLVM.html" target="_blank">http://llvm.org/docs/CompileCudaWithLLVM.html</a>. I also tried the matrixMul in CUDA samples, and saw similar errors. I haven't tried CUDA 7.5, but do we assume CUDA 7.5 only? </div><div><br></div><div>Below is the command line I use and the error messages I got:</div><div><br></div><div>jingyue Work% clang++ -I../../common/inc -L/usr/local/cuda/lib64 -I/usr/local/cuda <a href="http://axpy.cu" target="_blank">axpy.cu</a> -lcudart_static -lcuda -ldl -lrt -pthread<br></div><div><br></div><div><div>In file included from <built-in>:614:</div><div>In file included from <command line>:1:</div><div>/usr/local/google/home/jingyue/Work/llvm/install-git/bin/../lib/clang/3.8.0/include/__clang_cuda_runtime_wrapper.h:169:31: error: redefinition of '__brkpt'</div><div>static inline __device__ void __brkpt(int c) { __brkpt(); }</div><div> ^</div><div>/usr/local/google/home/jingyue/Work/llvm/install-git/bin/../lib/clang/3.8.0/include/cuda_runtime.h:132:31: note: previous definition is here</div><div>static inline __device__ void __brkpt(int c) { __brkpt(); }</div><div> ^</div><div>In file included from <built-in>:614:</div><div>In file included from <command line>:1:</div><div>In file included from /usr/local/google/home/jingyue/Work/llvm/install-git/bin/../lib/clang/3.8.0/include/__clang_cuda_runtime_wrapper.h:181:</div><div>/usr/local/cuda/include/device_functions.hpp:79:38: error: redefinition of 'mulhi'</div><div>__DEVICE_FUNCTIONS_STATIC_DECL__ int mulhi(int a, int b)</div><div> ^</div><div>/usr/local/cuda/include/device_functions.hpp:79:38: note: previous definition is here</div><div>__DEVICE_FUNCTIONS_STATIC_DECL__ int mulhi(int a, int b)</div><div> ^</div><div>In file included from <built-in>:614:</div><div>In file included from <command line>:1:</div><div>In file included from /usr/local/google/home/jingyue/Work/llvm/install-git/bin/../lib/clang/3.8.0/include/__clang_cuda_runtime_wrapper.h:181:</div><div>/usr/local/cuda/include/device_functions.hpp:84:47: error: redefinition of 'mulhi'</div><div>__DEVICE_FUNCTIONS_STATIC_DECL__ unsigned int mulhi(unsigned int a, unsigned int b)</div><div> ^</div><div>/usr/local/cuda/include/device_functions.hpp:84:47: note: previous definition is here</div><div>__DEVICE_FUNCTIONS_STATIC_DECL__ unsigned int mulhi(unsigned int a, unsigned int b)</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">--Artem Belevich</div></div>
</div>