OpenCv Compiling with Cuda

微笑、不失礼 提交于 2021-02-08 11:37:52

问题


I'm giving this command

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/ ..

but always cmake gives me

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

How can it be done? Thanks.


回答1:


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 supports only CUDA 4.0.

OpenCV 2.4 supports CUDA 4.1 and 4.2.



来源:https://stackoverflow.com/questions/10608762/opencv-compiling-with-cuda

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!