Sorry i should have caught this before . devicequery reports only 1 gpu . the lspci reported the quadro k5200 . this is the output of the uname -a 4.4.0-119-generic #143-ubuntu smp mon apr 2 16:08:24 utc 2018 x86_64 x86_64 x86_64 gnu/linux the strange thing is that i remove the nvidia drivers and the monitor and gui works .. When i use the driver download page it points me to the nvidia-linux-x86_64-367.57 version of the drivers which seem to work (they install the expected modules and nvidia-smi doesn't error) however when i go to install the current download of cuda (cuda_9.1.85_387.26_linux) it installs a newer version of the driver (387.26) which doesn't seem. However, before we uninstall and this only applies to readers who have another version of the cuda drivers installed, you’ll likely want to uninstall the older version before installing this version. nvidia-smi 387.26 driver version: 387.26.
Next, you need to build and install the dkms module: sudo dkms build nvidia-387 / 387.26 sudo dkms install nvidia-387 / 387.26. Bad return status for module build on kernel: 4.13.0-26-generic (x86_64) during my searches i found lot of issues pointing to a wrong gcc version but after several attempts i wasn't able to find a way to go: following this discussion i tried with gcc 4.8/4-9/5.4/6 without any luck.. Download drivers for nvidia products including geforce graphics cards, nforce motherboards, quadro workstations, and more. update your graphics card drivers today..