Install gcc-7-offload-nvptx by entering the following commands in the terminal:
sudo apt update sudo apt install gcc-7-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: 7.3.0-16ubuntu3
Section: universe/devel