Cuda samples not running Ubuntu 18. Driver and Cuda toolkit are installed.

HI, this is probably something simple. I did install the Nvidia driver.

cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 390.77 Tue Jul 10 18:28:52 PDT 2018
GCC version: gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)

The toolkit is installed and I did a make to compile all of the examples.

nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148

However, when I go to /usr/local/cuda-9.2/samples/bin/x86_64/linux/release

and attempt to run any of the samples, I get, for example with “clock”

./clock
CUDA Clock sample
CUDA error at …/…/common/inc/helper_cuda.h:1147 code=30(cudaErrorUnknown) “cudaGetDeviceCount(&device_count)”

I feel that this is something simple like a path variable or something.

Thank You
Tom

CUDA 9.2 will not work with driver 390.77

see table 1 here:

[url]https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#major-components[/url]

get your installers from [url]http://www.nvidia.com/getcuda[/url]

follow the instructions here carefully:

[url]Installation Guide Linux :: CUDA Toolkit Documentation