Install nvidia-cuda-gdb by entering the following commands in the terminal:
sudo apt update sudo apt install nvidia-cuda-gdb
Description:
NVIDIA CUDA Debugger (GDB)
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 cuda-gdb debugger.
Homepage: https://developer.nvidia.com/cuda-zone
Version: 9.1.85-3ubuntu1
Section: multiverse/devel