使用Cuda进行OpenCv编译 [英] OpenCv Compiling with Cuda

查看:85
本文介绍了使用Cuda进行OpenCv编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在给这个命令

cmake -D CMAKE_BUILD_TYPE =发布-D CMAKE_INSTALL_PREFIX =/developments/opencv/install/opencv/* -D WITH_CUDA = ON -D CUDA_TOOLKIT_ROOT_DIR =/usr/local/cuda/..

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/developments/opencv/install/opencv/* -D WITH_CUDA=ON -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/ ..

但cmake总是给我

-其他第三方库:-使用IPP:否-使用TBB:否-使用Cuda:否-使用本征:否-使用Clp:否

-- Other third-party libraries: -- Use IPP: NO -- Use TBB: NO -- Use Cuda: NO -- Use Eigen: NO -- Use Clp: NO

该怎么办?谢谢.

推荐答案

很可能您没有安装所需的CUDA版本.cmake的输出应该警告您.

Most probably you don't have the required CUDA version installed. The output of cmake should be warning you about it.

OpenCV 2.3.1仅支持CUDA 4.0.

OpenCV 2.3.1 supports only CUDA 4.0.

OpenCV 2.4支持CUDA 4.1和4.2.

OpenCV 2.4 supports CUDA 4.1 and 4.2.

这篇关于使用Cuda进行OpenCv编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆