OpenCV 与 CUDA 使用 TBB 处理多个 GPU 时出现错误
我的 OpenCV CUDA 程序使用单个 NVidia 580GTX 运行良好,但当使用另一个时,会出现以下错误:
OpenCV 错误:mallocPitch 中的 Gpu API 调用(设备序号无效)
我知道我需要 TBB 来分配 GPU 的工作,但即使我安装了带有 TBB 支持的 OpenCV(遵循 willowgarage 网站),它仍然显示需要 TBB 支持(CMake 键“WITH_TBB”必须为 true)。任何帮助将非常感激,因为我需要它来完成我的计算机科学硕士项目。
谢谢!
My OpenCV CUDA program runs fine using a single NVidia 580GTX, but when using another, it gives the following error:
OpenCV Error: Gpu API call (invalid device ordinal) in mallocPitch
I know I need TBB to assign a GPU its job, but even though I installed OpenCV with TBB support (followed the willowgarage website), it says TBB support is required (CMake key 'WITH_TBB' must be true). Any help would really be appreciated since I need this to complete my computer science Master's project.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,解决了。事实证明,问题出在版本 7232 上,因为它可以与最新的 opencv 版本(7292)一起使用,没有任何问题。感谢大家的支持
Ok its solved. turns out it was build 7232 that was the problem, since it works with the latest opencv build(7292) with no problems. Thanks all for the support