I have Ubuntu 16.04 and kernel 4.15.4-041504-generic
I am trying to setup my development environment for CAFFE and I am following the instructions from here:
I am trying to install from the run file because it is recommended on the CAFFE website:
Is the following sentence from the installation guide of Caffe still correct?
“The NVIDIA package tends to follow more recent library and driver versions”
I am installing the CUDA 9.1 and the NVidia driver separately.
For CUDA, I installed using the instructions and followed the post-installation with no problems.
After the CUDA installation finishes, for the Nvidia driver, I did this:
sudo apt-get purge nvidia* sudo add-apt-repository ppa:graphics-drivers sudo apt-get update
Then I pressed crtl+alt+F2 to enter TTY
sudo service lightdm stop sudo apt-get install nvidia-390
I reboot after seeing the console says the installation for nvidia-390 passed all the test and was successful.
I believe I installed and setup the CUDA 9.1 correctly because I get the following
jkuo@jkuo-ThinkPad:~/NVIDIA_CUDA-9.1_Samples/bin/x86_64/linux/release$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Nov__3_21:07:56_CDT_2017 Cuda compilation tools, release 9.1, V9.1.85
And I was able to make(compile) in the NVIDIA_CUDA-9.1_Samples folder
However, I believe the NVidia-390 driver failed because when I run the deviceQuery from sample I get:
./deviceQuery Starting... CUDA Device Query (Runtime API) version (CUDART static linking) cudaGetDeviceCount returned 35 -> CUDA driver version is insufficient for CUDA runtime version Result = FAIL
Then I checked:
lspci | grep -i nvidia 02:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev ff) dpkg -l | grep nvidia ii nvidia-390 390.25-0ubuntu0~gpu16.04.1 amd64 NVIDIA binary driver - version 390.25 ii nvidia-opencl-icd-390 390.25-0ubuntu0~gpu16.04.1 amd64 NVIDIA OpenCL ICD ii nvidia-prime 0.8.2 amd64 Tools to enable NVIDIA's Prime ii nvidia-settings 390.25-0ubuntu0~gpu16.04.1 amd64 Tool for configuring the NVIDIA graphics drive
I also tried to reinstall the nvidia-390 driver multiple times with purge, tty, then install, but I still can’t seem to have my system configure to use the graphic card
I don’t know what is a good way of checking it, so i evaluate by this:
lspci -vnn | grep VGA -A 12 00:02.0 VGA compatible controller : Intel Corporation Device [8086:591b] (rev 04) (prog-if 00 [VGA controller]) Subsystem: Lenovo Device [17aa:5066] Flags: bus master, fast devsel, latency 0, IRQ 138 Memory at d0000000 (64-bit, non-prefetchable) Memory at c0000000 (64-bit, prefetchable) I/O ports at e000 [virtual] Expansion ROM at 000c0000 [disabled] Capabilities: <access denied> Kernel driver in use: i915 Kernel modules: i915 00:08.0 System peripheral : Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model [8086:1911] Subsystem: Lenovo Skylake Gaussian Mixture Model [17aa:5066]
and lsmod | grep nvidia gives me nothing
People seem to have nvidia-smi, but i don’t have it for some reason. Is this something that needs to be installed externally?
Please give me detailed instructions of what you need and what I should do as I am new to Linux, CUDA and driver installations.
Thanks in advance.