Common block variables are not supported in acc routine

Hi,

I have got this error “Common block variables are not supported in acc routine” when compiling. I find that there is a bug fixed report in Technical Problem Reports says

pgfortran -ta=tesla -Minline fails with “Common block variables are not supported in acc routine”
Corrected the inlining of module routines marked acc routine containing use-associated variables

I don’t quite understand what am I supposed to do exactly since there is no simple case showed. I tried to delete the ‘-Minline’ but the same errors are still there. Would you please tell me how to fix this compiling error?

Thanks,
Xiaowei.

Hi Xiaowei,

Do you have the TPR number that you’re referencing?

The one TPR that I saw with a similar error (TPR#22531) was about the compiler not carrying information about the device variables when the routine was inlined. This was fixed in PGI 16.10.

Can you please give more information about your program and, if possible, a reproducing example?

Thanks,
Mat