OpenGL, NVIDIA and Ubuntu 14.04 issues

You still have leftovers from some previous install, you’ll have to remove them manually.
Locate the directory
/usr/lib/x86_64-linux-gnu/xorg/extra-modules/
There are probably two files, libglx.so.375.66 and a symbolic link to it, libglx.so
Delete those, restart and post the Xorg.0.log to see if the libglx error is gone.
About the cuda samples, did you recompile them using
$ cd ~/NVIDIA_CUDA-8.0_Samples
$ make
$ cd ~/NVIDIA_CUDA-8.0_Samples/bin/aarch64/linux/release
before running them? If that doesn’t help, purge and reinstall the nvidia driver and run update alternative afterwards.

I will try this Thanks.

Yes, I used the make command, and still received the error message running deviceQuery and bandwidth tests in that release directory:

./deviceQuery
./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

I followed the instructions from the nvidia site for installing cuda. During cuda installation I noticed this output on the screen:

sudo apt-get install cuda
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  cuda-8-0 cuda-command-line-tools-8-0 cuda-core-8-0 cuda-cublas-8-0
  cuda-cublas-dev-8-0 cuda-cudart-8-0 cuda-cudart-dev-8-0 cuda-cufft-8-0
  cuda-cufft-dev-8-0 cuda-curand-8-0 cuda-curand-dev-8-0 cuda-cusolver-8-0
  cuda-cusolver-dev-8-0 cuda-cusparse-8-0 cuda-cusparse-dev-8-0
  cuda-demo-suite-8-0 cuda-documentation-8-0 cuda-driver-dev-8-0 cuda-drivers
  cuda-license-8-0 cuda-misc-headers-8-0 cuda-npp-8-0 cuda-npp-dev-8-0
  cuda-nvgraph-8-0 cuda-nvgraph-dev-8-0 cuda-nvml-dev-8-0 cuda-nvrtc-8-0
  cuda-nvrtc-dev-8-0 cuda-runtime-8-0 cuda-samples-8-0 cuda-toolkit-8-0
  cuda-visual-tools-8-0 libxmu-dev libxmu-headers nvidia-384-dev
  nvidia-modprobe
The following NEW packages will be installed:
  cuda cuda-8-0 cuda-command-line-tools-8-0 cuda-core-8-0 cuda-cublas-8-0
  cuda-cublas-dev-8-0 cuda-cudart-8-0 cuda-cudart-dev-8-0 cuda-cufft-8-0
  cuda-cufft-dev-8-0 cuda-curand-8-0 cuda-curand-dev-8-0 cuda-cusolver-8-0
  cuda-cusolver-dev-8-0 cuda-cusparse-8-0 cuda-cusparse-dev-8-0
  cuda-demo-suite-8-0 cuda-documentation-8-0 cuda-driver-dev-8-0 cuda-drivers
  cuda-license-8-0 cuda-misc-headers-8-0 cuda-npp-8-0 cuda-npp-dev-8-0
  cuda-nvgraph-8-0 cuda-nvgraph-dev-8-0 cuda-nvml-dev-8-0 cuda-nvrtc-8-0
  cuda-nvrtc-dev-8-0 cuda-runtime-8-0 cuda-samples-8-0 cuda-toolkit-8-0
  cuda-visual-tools-8-0 libxmu-dev libxmu-headers nvidia-384-dev
  nvidia-modprobe
0 upgraded, 37 newly installed, 0 to remove and 18 not upgraded.
Need to get 1,352 MB/1,352 MB of archives.
After this operation, 2,145 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-license-8-0 8.0.61-1 [27.6 kB]
Get:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-misc-headers-8-0 8.0.61-1 [1,077 kB]
Get:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-core-8-0 8.0.61-1 [20.0 MB]
Get:4 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cudart-8-0 8.0.61-1 [135 kB]
Get:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-driver-dev-8-0 8.0.61-1 [14.1 kB]
Get:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cudart-dev-8-0 8.0.61-1 [1,071 kB]
Get:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-command-line-tools-8-0 8.0.61-1 [26.1 MB]
Get:8 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-nvrtc-8-0 8.0.61-1 [9,585 kB]
Get:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-nvrtc-dev-8-0 8.0.61-1 [10.8 kB]
Get:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cusolver-8-0 8.0.61-1 [29.3 MB]
Get:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cusolver-dev-8-0 8.0.61-1 [6,816 kB]
Get:12 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cublas-8-0 8.0.61.2-1 [58.1 MB]
Get:13 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cublas-dev-8-0 8.0.61.2-1 [66.6 MB]
Get:14 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu/ trusty/main nvidia-384-dev amd64 384.69-0ubuntu0~gpu14.04.1 [81.5 kB]
Get:15 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cufft-8-0 8.0.61-1 [117 MB]
Get:16 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cufft-dev-8-0 8.0.61-1 [94.8 MB]
Get:17 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-curand-8-0 8.0.61-1 [43.7 MB]
Get:18 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-curand-dev-8-0 8.0.61-1 [67.7 MB]
Get:19 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cusparse-8-0 8.0.61-1 [28.8 MB]
Get:20 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-cusparse-dev-8-0 8.0.61-1 [29.6 MB]
Get:21 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-npp-8-0 8.0.61-1 [157 MB]
Get:22 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-npp-dev-8-0 8.0.61-1 [82.3 MB]
Get:23 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-samples-8-0 8.0.61-1 [101 MB]
Get:24 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-documentation-8-0 8.0.61-1 [113 MB]
Get:25 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-nvml-dev-8-0 8.0.61-1 [48.4 kB]
Get:26 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-nvgraph-8-0 8.0.61-1 [2,948 kB]
Get:27 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-nvgraph-dev-8-0 8.0.61-1 [3,028 kB]
Get:28 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-visual-tools-8-0 8.0.61-1 [286 MB]
Get:29 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-toolkit-8-0 8.0.61-1 [2,892 B]
Get:30 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  nvidia-modprobe 384.66-0ubuntu1 [17.2 kB]
Get:31 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-drivers 384.66-1 [2,404 B]
Get:32 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-runtime-8-0 8.0.61-1 [2,574 B]
Get:33 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-demo-suite-8-0 8.0.61-1 [4,988 kB]
Get:34 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda-8-0 8.0.61-1 [2,556 B]
Get:35 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/  cuda 8.0.61-1 [2,510 B]
Fetched 1,352 MB in 1min 36s (14.0 MB/s)                                       
Extracting templates from packages: 100%
Selecting previously unselected package cuda-license-8-0.
(Reading database ... 1075159 files and directories currently installed.)
Preparing to unpack .../cuda-license-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-license-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-misc-headers-8-0.
Preparing to unpack .../cuda-misc-headers-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-misc-headers-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-core-8-0.
Preparing to unpack .../cuda-core-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-core-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-cudart-8-0.
Preparing to unpack .../cuda-cudart-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cudart-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-driver-dev-8-0.
Preparing to unpack .../cuda-driver-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-driver-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-cudart-dev-8-0.
Preparing to unpack .../cuda-cudart-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cudart-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-command-line-tools-8-0.
Preparing to unpack .../cuda-command-line-tools-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-command-line-tools-8-0 (8.0.61-1) ...
Selecting previously unselected package libxmu-headers.
Preparing to unpack .../libxmu-headers_2%3a1.1.1-1_all.deb ...
Unpacking libxmu-headers (2:1.1.1-1) ...
Selecting previously unselected package libxmu-dev:amd64.
Preparing to unpack .../libxmu-dev_2%3a1.1.1-1_amd64.deb ...
Unpacking libxmu-dev:amd64 (2:1.1.1-1) ...
Selecting previously unselected package cuda-nvrtc-8-0.
Preparing to unpack .../cuda-nvrtc-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvrtc-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-nvrtc-dev-8-0.
Preparing to unpack .../cuda-nvrtc-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-cusolver-8-0.
Preparing to unpack .../cuda-cusolver-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cusolver-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-cusolver-dev-8-0.
Preparing to unpack .../cuda-cusolver-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cusolver-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-cublas-8-0.
Preparing to unpack .../cuda-cublas-8-0_8.0.61.2-1_amd64.deb ...
Unpacking cuda-cublas-8-0 (8.0.61.2-1) ...
Selecting previously unselected package cuda-cublas-dev-8-0.
Preparing to unpack .../cuda-cublas-dev-8-0_8.0.61.2-1_amd64.deb ...
Unpacking cuda-cublas-dev-8-0 (8.0.61.2-1) ...
Selecting previously unselected package cuda-cufft-8-0.
Preparing to unpack .../cuda-cufft-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cufft-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-cufft-dev-8-0.
Preparing to unpack .../cuda-cufft-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cufft-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-curand-8-0.
Preparing to unpack .../cuda-curand-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-curand-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-curand-dev-8-0.
Preparing to unpack .../cuda-curand-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-curand-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-cusparse-8-0.
Preparing to unpack .../cuda-cusparse-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cusparse-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-cusparse-dev-8-0.
Preparing to unpack .../cuda-cusparse-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cusparse-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-npp-8-0.
Preparing to unpack .../cuda-npp-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-npp-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-npp-dev-8-0.
Preparing to unpack .../cuda-npp-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-npp-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-samples-8-0.
Preparing to unpack .../cuda-samples-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-samples-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-documentation-8-0.
Preparing to unpack .../cuda-documentation-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-documentation-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-nvml-dev-8-0.
Preparing to unpack .../cuda-nvml-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvml-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-nvgraph-8-0.
Preparing to unpack .../cuda-nvgraph-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvgraph-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-nvgraph-dev-8-0.
Preparing to unpack .../cuda-nvgraph-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvgraph-dev-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-visual-tools-8-0.
Preparing to unpack .../cuda-visual-tools-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-visual-tools-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-toolkit-8-0.
Preparing to unpack .../cuda-toolkit-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-toolkit-8-0 (8.0.61-1) ...
[b]Selecting previously unselected package nvidia-384-dev.
Preparing to unpack .../nvidia-384-dev_384.69-0ubuntu0~gpu14.04.1_amd64.deb ...
Unpacking nvidia-384-dev (384.69-0ubuntu0~gpu14.04.1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../nvidia-modprobe_384.66-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (384.66-0ubuntu1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../cuda-drivers_384.66-1_amd64.deb ...
Unpacking cuda-drivers (384.66-1) ...[/b]
Selecting previously unselected package cuda-runtime-8-0.
Preparing to unpack .../cuda-runtime-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-runtime-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-demo-suite-8-0.
Preparing to unpack .../cuda-demo-suite-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-demo-suite-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda-8-0.
Preparing to unpack .../cuda-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-8-0 (8.0.61-1) ...
Selecting previously unselected package cuda.
Preparing to unpack .../cuda_8.0.61-1_amd64.deb ...
Unpacking cuda (8.0.61-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up cuda-license-8-0 (8.0.61-1) ...
*** LICENSE AGREEMENT ***
By using this software you agree to fully comply with the terms and 
conditions of the EULA (End User License Agreement). The EULA is located
at /usr/local/cuda-8.0/doc/EULA.txt. The EULA can also be found at
http://docs.nvidia.com/cuda/eula/index.html. If you do not agree to the
terms and conditions of the EULA, do not use the software.

Setting up cuda-misc-headers-8-0 (8.0.61-1) ...
Setting up cuda-core-8-0 (8.0.61-1) ...
Setting up cuda-cudart-8-0 (8.0.61-1) ...
Setting up cuda-driver-dev-8-0 (8.0.61-1) ...
Setting up cuda-cudart-dev-8-0 (8.0.61-1) ...
Setting up cuda-command-line-tools-8-0 (8.0.61-1) ...
Setting up libxmu-headers (2:1.1.1-1) ...
Setting up libxmu-dev:amd64 (2:1.1.1-1) ...
Setting up cuda-nvrtc-8-0 (8.0.61-1) ...
Setting up cuda-nvrtc-dev-8-0 (8.0.61-1) ...
Setting up cuda-cusolver-8-0 (8.0.61-1) ...
Setting up cuda-cusolver-dev-8-0 (8.0.61-1) ...
Setting up cuda-cublas-8-0 (8.0.61.2-1) ...
Setting up cuda-cublas-dev-8-0 (8.0.61.2-1) ...
Setting up cuda-cufft-8-0 (8.0.61-1) ...
Setting up cuda-cufft-dev-8-0 (8.0.61-1) ...
Setting up cuda-curand-8-0 (8.0.61-1) ...
Setting up cuda-curand-dev-8-0 (8.0.61-1) ...
Setting up cuda-cusparse-8-0 (8.0.61-1) ...
Setting up cuda-cusparse-dev-8-0 (8.0.61-1) ...
Setting up cuda-npp-8-0 (8.0.61-1) ...
Setting up cuda-npp-dev-8-0 (8.0.61-1) ...
Setting up cuda-samples-8-0 (8.0.61-1) ...
Setting up cuda-documentation-8-0 (8.0.61-1) ...
Setting up cuda-nvml-dev-8-0 (8.0.61-1) ...
Setting up cuda-nvgraph-8-0 (8.0.61-1) ...
Setting up cuda-nvgraph-dev-8-0 (8.0.61-1) ...
Setting up cuda-visual-tools-8-0 (8.0.61-1) ...
Setting up cuda-toolkit-8-0 (8.0.61-1) ...
[b]Setting up nvidia-384-dev (384.69-0ubuntu0~gpu14.04.1) ...
Setting up nvidia-modprobe (384.66-0ubuntu1) ...
Setting up cuda-drivers (384.66-1) ...[/b]
Setting up cuda-runtime-8-0 (8.0.61-1) ...
Setting up cuda-demo-suite-8-0 (8.0.61-1) ...
Setting up cuda-8-0 (8.0.61-1) ...
Setting up cuda (8.0.61-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...

If you notice, the cuda-drivers and nvidia-modprobe is 384.66, but the nvidia-384-dev is 384.69. I’m thinking that is the source of conflict. I tried uninstalling/reinstalling nvidia, but the most recent up-to-date nvidia driver from the ppa is 384.69. It looks like cuda’s most recent update is compatible with only 384.66. Am I interpreting this correctly? Would update-alternatives resolve this issue, or does it require another step?

green

update-alternatives has nothing to do with cuda, it’s for having video on the matrox in this case. It just has to be run after you reinstall the nvidia-driver.
The cuda driver and the nvidia driver differing (.66 vs .69) is rather normal, the cuda team has a different release cycle. The ubuntu packages concerning cuda-drivers are merely stubs, they don’t provide anything, just pulling in the needed nvidia-drivers afaik. Don’t think too much into that. It’s only important that the libcuda version matches the kernel driver.
Since you also have leftovers from some 375 install in the xorg modules, it’s likely that there’s also a problem with the cuda libs.
ls -l /usr/lib/x86_64-linux-gnu/
should give you two symbolic links and a lib file:
/usr/lib/x86_64-linux-gnu/libcuda.so → libcuda.so.384.69
/usr/lib/x86_64-linux-gnu/libcuda.so.1 → libcuda.so.384.69
/usr/lib/x86_64-linux-gnu/libcuda.so.384.69
If it’s differing, delete those and reinstall the libcuda packages, repeat for the 32bit-libs if needed.
Since you asked: you could have used the --no-opengl-files option at the very beginning to circumvent the problems you’re having. But now you’re having leftover libs from some early .run install which is always the risk using the .run installer. One little mistake and you have to clean up manually.

To be sure no leftover cuda libs are installed, maybe also use
find /usr/ -name libcuda*

generix,

Thank you for all of your help these past few weeks. It is much appreciated.

I removed those left over 375 installs. Now I don’t see that error anymore in the log. I now see glx as a vendor

% more /var/log/Xorg.0.log | grep glx
[    25.747] (II) "glx" will be loaded by default.
[    25.747] (II) LoadModule: "glx"
[    25.749] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    25.916] (II) Module glx: vendor="X.Org Foundation"

% more /var/log/Xorg.0.log | grep vendor
[    25.916] (II) Module glx: vendor="X.Org Foundation"
[    25.925] (II) Module mga: vendor="X.Org Foundation"
[    25.942] (II) Module modesetting: vendor="X.Org Foundation"
[    25.943] (II) Module fbdev: vendor="X.Org Foundation"
[    25.943] (II) Module vesa: vendor="X.Org Foundation"
[    25.950] (II) Module fbdevhw: vendor="X.Org Foundation"
[    25.957] (II) Module vgahw: vendor="X.Org Foundation"
[    25.987] (II) Module vbe: vendor="X.Org Foundation"
[    26.002] (II) Module int10: vendor="X.Org Foundation"
[    26.194] (II) Module fb: vendor="X.Org Foundation"
[    26.670] (II) Module evdev: vendor="X.Org Foundation"

However, i still run into issues with installing the nvidia driver with the ppa, and cuda with the .deb installer. I tried several combinations. I checked for any leftover cuda or nvidia installation, could not find any. One issue is that the command nvidia-smi was never found after installing the nvidia driver and cuda. When cuda was installed, I could never finish compiling the samples. Then when I would try running the deviceQuery, I would get this message:

./deviceQuery 
./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

I wound up uninstalling the repos of nvidia and cuda.

I just installed the nvidia and cuda .run files again. However, this time I installed the nvidia driver with the --no-opengl-files with the run file installer. With that option, my glxgears and glxinfo works and the opengl version string 2.0 is still appropriate. The nvidia-smi command exists, and I am able to compile the Cuda samples completely. Both deviceQuery and bandWithTest also pass. I’m leaning towards just keeping the run file installed for both nvidia driver and cuda. If the run file installation is working, is there anything I’m losing by not using the repositories?

green

Fine you found a config that works.
By not using the repos you’re losing

  • the added integrity checks and file tracking of the package manager preventing the mess you’ve been in with overwritten/missing system files and stray libs blocking installed system libs
  • easy updates
  • especially regarding the kernel driver. Since it’s a kernel module it has to be recompiled on every kernel update. I don’t know if you’ve configured DKMS, this would at least take care of that part. Otherwise you will have to reinstall the nvidia driver on kernel update and not forget the --no-opengl-files option.
    So you will have to take more care of the system than with using the repo packages and on mistake start at post #1;)

generix,

Finally got things to work, but it wouldn’t have been possible without your guidance. Thanks again for all of your help.

For the past couple of years, we’ve been doing the reinstall/rebuild after every kernel update. Not the most desirable, but not much of a hassle either. Just one additional small step, of course with the added --no-opengl-files options from this point forward. :)

We did not configure DKMS. It looks like it would be useful.

In the past after a kernel update, this is the command we used to reinstall the nvidia driver:

sudo ./NVIDIA-Linux-x86_64-384.66.run  -K

After future kernel updates, we would add the very important option, correct?

sudo ./NVIDIA-Linux-x86_64-384.66.run  -K --no-opengl-files

If we wanted to congfigure dkms, would simply adding the “dkms” be suffice?

sudo ./NVIDIA-Linux-x86_64-384.66.run  -K --no-opengl-files --dkms

Are there additional steps involved configuring dkms?

Thanks again.

green

I see you’ve been accustomed to using the .run installer on normal installs. Everything you said is absolutely correct.
There’s nothing more to be said or done regarding DKMS, though it’s trial-and-error but mostly works as or when it’s set up by the distro. So just try and see if it eases your work, nothing to lose/destroy there.

generix,

Okay, I will keep that in mind.

Thanks for all of your help.

green