PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

'present' clause in PGI accelerator model

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
univie



Joined: 07 Sep 2012
Posts: 2

PostPosted: Thu Nov 29, 2012 3:22 pm    Post subject: 'present' clause in PGI accelerator model Reply with quote

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!
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Thu Nov 29, 2012 5:41 pm    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile
univie



Joined: 07 Sep 2012
Posts: 2

PostPosted: Fri Nov 30, 2012 2:16 am    Post subject: Reply with quote

Hi Mat,

Thank you for your answer.

Quote:
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.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Fri Nov 30, 2012 9:07 am    Post subject: Reply with quote

Typo. It should read "So you *can* mix and match the syntax.."

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group