pgc++-Error-CUDA version 8.0 is not available in this instal

Dear Mat,
I’ ve installed CUDA8.0 on Ubuntu16.04 before installed PGI16.10 complier.

When I try to compile a test file by using command ’ pgc++ -acc main.cpp -o main’, some errors occur. The error code are:

pgnvd-Error-CUDADIR value is not a directory: /opt/pgi/linux86-64/2016/cuda/7.0/bin

PGCC-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (main.cpp: 1)
PGCC/x86 Linux 16.10-0: compilation aborted

There’s indeed no directory ‘/opt/pgi/linux86-64/2016/cuda/7.0/bin’.

Then I tried to use command flag -ta=tesla:cuda8.0, but result a new problem. The error message is:
‘pgc+±Error-CUDA version 8.0 is not available in this installation’

Hope you can help me this problem. Thanks.

I believe you installed the CUDA 8.0 driver on the GPU,
but you said no to installing the CUDA software that comes with the
PGI download. If you have said yes/accept to cuda installations,
7.0, 7.5, and 8.0 libs and tools will be added to the PGI directories,
so that programs can take advantage of the GPUs present.

Remove the PGI installation, install again, and say yes/accept to everything.

The result should be a correct installation with GPU support.

Thank you very much.
I just reinstalled the PGI and say 'yes ’ to everything.

Finally, it works.