'present' clause in PGI accelerator model

I have written a test program using PGI Accelerator Model, in stead of using ‘mirror’ or ‘reflected’ clause, the OpenACC data clause ‘present’ is added in the program:

#pragma acc region present(matrix_a[0:n]){

}


The PGI version 12.8 is used to compile the program, and I did not get any error information, all the results are correct.

Can I mix this OpenACC ‘present’ clause on the PGI Accelerator Model? or the PGI Accelerator Model supports already the ‘present’ clause just like in OpenACC?

Thank you in advance!

Can I mix this OpenACC ‘present’ clause on the PGI Accelerator Model?

We accept either syntax and our implementation of the two models has merged. So, you and mix and match the syntax from both models.

  • Mat

Hi Mat,

Thank you for your answer.

So, you and mix and match the syntax from both models.

Did you mean that I can mix and match the syntax from PGI Accelerator and OpenACC models in a same program?

Thanks again.

Typo. It should read “So you can mix and match the syntax…”

  • Mat