我用cuda5.5安装了nsight。一切正常,但我正在尝试在主机上运行opencv函数来生成图像。我包含了opencv头路径和我需要的libs路径。当我试图编译它时,给出了这个错误,/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,有人知道是什么原因吗?或者有什么方法可以让opencv在nsight上工作?谢谢!
发布于 2014-05-26 22:54:32
我通过从config.mk中定义的宏中删除'-D HAVE_SSE2‘解决了我的问题。
如果你不能做到这一点:
参见this solution。简而言之,您需要使用SSE2编译代码,使用gcc编译代码,使用nvcc编译CUDA代码,然后将它们链接在一起。
显然NVidia is aware of the problem和“它应该很快就会被修复”,但我有6.0版,这个bug仍然存在。
有人mentioned this problem on the NVIDIA developer forums,但没人回答。
https://stackoverflow.com/questions/20276112
复制相似问题