When invoked in python, cv2 is looking for the wrong libcudart.so. Here is the error after import cv2
ImportError: libcudart.so.6.5: cannot open shared object file: No such file or directory.
I have both CUDA 6.5 and 7.5 installed on my system. But other apps seem to have no problem finding 7.5.
Here is my settings : ubuntu 14.04, OpenCV 3.0.0, python 2.7, cuda 6.5 and cuda 7.5
The LD_LIBRARY_PATH looks like
/usr/local/cuda/lib64:/usr/local/lib:/home/rspace/shogun-4.0.0/build-release/src/shogun:/usr/lib:/usr/lib/x86_64-linux-gnu
NOTE: the /usr/local/cuda is actually a link to /usr/local/cuda-7.5.
/usr/local/cudais actually a symlink on your system that actually points to/usr/local/cuda-7.5, so the/usr/local/cuda/lib64entry in yourLD_LIBRARY_PATHwon't allow codes that are built against CUDA 6.5 to find the appropriate libraries. You could try adding the exact path to libcudart.so.6.5 to yourLD_LIBRARY_PATH. Regarding the "wrong" libcudart.so, the application will "look for" whichever one it was built against (linked against). An app linked against CUDA 6.5 can't use the CUDA 7.5 libraries instead - Robert Crovella