Install gcc-8-offload-nvptx by entering the following commands in the terminal:
sudo apt update sudo apt install gcc-8-offload-nvptx
Description:
GCC offloading compiler to NVPTX
The package provides offloading support for NVidia PTX. OpenMP and OpenACC programs linked with -fopenmp will by default add PTX code into the binaries, which can be offloaded to NVidia PTX capable devices if available.
Homepage: http://gcc.gnu.org/
Version: 8-20180414-1ubuntu2
Section: universe/devel