undefined reference to __pgi_cu_init

Hi guys,
I add the accelerator directives, !$acc region !$acc end region, to a loop in a short test code, it works fairly well. Then I tried to add them to a quite big program, the following information shows, I don’t know what’s wrong. Help me, please. Many thanks!

undefined reference to __pgi_cu_init' undefined reference to __pgi_cu_module3’
undefined reference to __pgi_cu_module_func undefined reference to __pgi_cu_alloc’
undefined reference to __pgi_cu_uploadc' undefined reference to __pgi_cu_paramset’
undefined reference to __pgi_cu_launch' undefined reference to __pgi_cu_download1’
undefined reference to __pgi_cu_datadone' undefined reference to __pgi_cu_free’
undefined reference to `__pgi_cu_close’

You most likely missing “-ta=nvidia” as a link option.

  • Mat