gpt4 book ai didi

eclipse - Nsight Eclipse Cuda + opencv

转载 作者:太空宇宙 更新时间:2023-11-03 20:39:28 32 4
gpt4 key购买 nike

我用cuda5.5安装了nsight。一切正常,但我正在尝试在主机上运行 opencv 函数来生成图像。我包括 opencv header 路径以及我需要的库路径。当我尝试编译时出现此错误 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/include/emmintrin.h(274) : 错误:标识符“__builtin_ia32_cmpsd”未定义任何人都知道可能是什么原因?或者有什么方法可以让 opencv 与 nsight eclipse 一起工作?谢谢!

最佳答案

我通过从 config.mk 中定义的宏中删除“-D HAVE_SSE2”解决了我的问题。

如果你做不到:

参见 this solution .简而言之,您需要使用 gcc 使用 SSE2 编译代码,使用 nvcc 编译 CUDA 代码,然后将它们链接在一起。

显然是 NVidia is aware of the problem和“应该尽快修复”,但我有 v6.0,但错误仍然存​​在。

有人 mentioned this problem on the NVIDIA developer forums , 但没有人回复。

关于eclipse - Nsight Eclipse Cuda + opencv,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20276112/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com