caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

Issue with Build on Ubuntu 16.04

Open mkamrao opened this issue 9 years ago • 3 comments

Hi

I followed the instructions as mentioned in: https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile

I got error after Clone & Build: make && cd build && sudo make install


CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find CUDA: Found unsuitable version "8.0", but required is exact version "7.5" (found /usr/local/cuda-8.0) Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.5/Modules/FindCUDA.cmake:949 (find_package_handle_standard_args) /usr/local/share/OpenCV/OpenCVConfig.cmake:86 (find_package) /usr/local/share/OpenCV/OpenCVConfig.cmake:105 (find_host_package) cmake/Dependencies.cmake:164 (find_package) CMakeLists.txt:82 (include)

-- Configuring incomplete, errors occurred! See also "/home/uurmi/caffe2/build/CMakeFiles/CMakeOutput.log". See also "/home/uurmi/caffe2/build/CMakeFiles/CMakeError.log". Makefile:4: recipe for target 'all' failed make: *** [all] Error 1

I am using Ubuntu 16.04. Initially, I tried with Cuda 8.0 and then with Cuda 7.5. The error is same with both versions.

Can you suggest what could be the issue?

Thanks Kamrao

mkamrao avatar May 12 '17 11:05 mkamrao

I think the error is because of the version of cuda is wrong. Could you remove the cuda library and reinstall Cuda-8.0 ?

Knight-X avatar May 13 '17 13:05 Knight-X

sudo rm -rf /usr/local/share/OpenCV

futurely avatar May 15 '17 08:05 futurely

Please try this again. If you follow NVIDIA's CUDA installation guide and also make sure you've fully removed the old version of CUDA, you should be fine. Please reopen if you have this issue again.

aaronmarkham avatar Jun 01 '17 17:06 aaronmarkham