<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">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">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>