I am completely new to the Ubuntu operating system. It appears that there are updates that I accepted and the program no longer works and I could not solve the problem.
pgc++ -fast -acc -Minfo=accel -gpu=cc86 my_file.cpp -g -o p66 pgc++-Error-A CUDA toolkit matching the current driver version (0) or a supported older version (11.1) was not installed with this HPC SDK.
I wanted to check the current version, so I tried the following instruction
nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Thu_Nov_18_09:45:30_PST_2021 Cuda compilation tools, release 11.5, V11.5.119 Build cuda_11.5.r11.5/compiler.30672275_0
As I understood it, it was updated, so I used to modify it, to no avail
sudo apt-get -o Dpkg::Options::="--force-overwrite" install cuda-11-1 cuda-drivers