openacc toolkit can not find nvidia card on centos 7

I try to compile the examples code with -ta=nvidia . It appears compiling wrong, Do I need to install nvidia driver or not?
The nvidia driver can not be install on centos7. After installing I can not login to system

Hi wzhao50719,

No, you shouldn’t need the CUDA driver installed to compile your program. You will need it in order to run, but not compiling.

What’s the error you’re seeing?

  • Mat