I installed CUDA using the NVIDIA CUDA Installation Guide for Linux (Ubuntu 18.04)
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-1-local-10.1.243-418.87.00/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda
nvidia-smi
Wed Oct 2 08:47:10 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.00 Driver Version: 418.87.00 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1070 On | 00000000:01:00.0 On | N/A |
| 0% 32C P8 7W / 180W | 1MiB / 8111MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 1070 On | 00000000:02:00.0 Off | N/A |
| 0% 32C P8 7W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 2 GeForce GTX 1070 On | 00000000:03:00.0 Off | N/A |
| 0% 27C P8 7W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 3 GeForce GTX 1070 On | 00000000:04:00.0 Off | N/A |
| 0% 33C P8 8W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 4 GeForce GTX 1070 On | 00000000:05:00.0 Off | N/A |
| 0% 32C P8 7W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 5 GeForce GTX 1070 On | 00000000:06:00.0 Off | N/A |
| 0% 26C P8 6W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 6 GeForce GTX 1070 On | 00000000:09:00.0 Off | N/A |
| 0% 33C P8 7W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 7 GeForce GTX 1070 On | 00000000:0A:00.0 Off | N/A |
| 0% 39C P8 7W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 8 GeForce GTX 1070 On | 00000000:0B:00.0 Off | N/A |
| 0% 31C P8 7W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 9 GeForce GTX 1070 On | 00000000:0C:00.0 Off | N/A |
| 0% 35C P8 7W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 10 GeForce GTX 1070 On | 00000000:0D:00.0 Off | N/A |
| 0% 38C P8 8W / 180W | 1MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 11 GeForce GTX 108... On | 00000000:0E:00.0 Off | N/A |
| 0% 30C P8 7W / 250W | 1MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 12 GeForce GTX 108... On | 00000000:0F:00.0 Off | N/A |
| 0% 33C P8 9W / 250W | 1MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
At the point 7.2.3.2. Compiling the Examples then I run
sudo make -k
during compile I got an error
fatal error: cublas_v2.h: No such file or directory
which nvcc
return
/usr/local/cuda-10.1/bin/nvcc
Please tell me what I need to fix so that the CUDA works correctly