I have one work station and ubantu 18.04 installed in it. I installed below nvidea driver
Cuda 10.0
Nvidea nvidia-driver-415
I need to run one software for Research Purpose and software need to run inGPU mode So proper Nvidia Drive should be installed and in proper way.
I am verifying GPU mode by running command “NVIDIA-SMI” but i am getting below error.
vivek@Workstation1:~$ sudo nvidia-smi
[sudo] password for vivek:
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
The kernel module can’t be compiled because the kernel headers are missing:
ERROR: Failed to run `/sbin/dkms build -m nvidia -v 410.78 -k 3.10.0-957.1.3.el7.x86_64`: Error! echo
Your kernel headers for kernel 3.10.0-957.1.3.el7.x86_64 cannot be found at
/lib/modules/3.10.0-957.1.3.el7.x86_64/build or /lib/modules/3.10.0-957.1.3.el7.x86_64/source.
-> error.
ERROR: Failed to install the kernel module through DKMS. No kernel module was installed; please try installing again without DKMS, or check the DKMS logs for more information.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
Please install the packages kernel-devel and kernel-headers and make sure you’re running the matching kernel version.