I get the following error when l run tensorflow in GPU.
2018-09-15 18:56:51.011724: E tensorflow/core/common_runtime/direct_session.cc:158] Internal: cudaGetDevi
For Ubuntu 18.04 and Tensorflow 1.13.1
First make sure system is up to data:
sudo apt update
sudo apt dist-upgrade
sudo reboot now
Install later drivers:
sudo add-apt-repository ppa:graphics-drivers/ppa
Open Software & Updates and select the Additional Drivers tab:
Select the nvidia-driver-396 and click Apply Changes
Now reboot:
sudo reboot now
To verify which that NVIDIA driver 396 active:
nvidia-smi