Install libcuda1-340 by entering the following commands in the terminal:
sudo apt update sudo apt install libcuda1-340
Description:
NVIDIA CUDA runtime library
The Compute Unified Device Architecture (CUDA) enables NVIDIA graphics processing units (GPUs) to be used for massively parallel general purpose computation. . This package contains the driver specific runtime library. . Supported NVIDIA devices include GPUs starting from GeForce 8 and Quadro FX series, as well as the Tesla computing processors.
Version: 340.106-0ubuntu3
Section: restricted/misc