Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nsight Eclipse Cuda + opencv

I installed nsight with cuda5.5. Everything works fine but I am trying to run opencv functions on the host to generate images. I include opencv header path and also the libs paths that I need. When I try to compile it gives this error /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/include/emmintrin.h(274): error: identifier "__builtin_ia32_cmpsd" is undefined Anyone knows what could be the reason? Or any way to have make opencv work with nsight eclipse? Thanks!

like image 579
Glove Avatar asked Nov 28 '13 23:11

Glove


1 Answers

I solved my issue by removing the '-D HAVE_SSE2' from the macros defined in config.mk.

If you can't do that:

See this solution. In brief, you need to compile the code using SSE2 using gcc and your CUDA code using nvcc and then link them together afterwards.

Apparently NVidia is aware of the problem and "it should be fixed soon", but I have v6.0 and the bug still exists.

Someone mentioned this problem on the NVIDIA developer forums, but nobody replied.

like image 121
Rose Perrone Avatar answered Oct 09 '22 04:10

Rose Perrone