PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

PGI Accelerator programming concepts questions
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Wed Sep 29, 2010 8:49 am    Post subject: Reply with quote

Hi Nicolas,

Quote:
Would code like this work:
Yes so long as you use the 'reflected' statement within subfunct1 and subfunct2 to tell the compiler to check if the arrays have already been allocated on the device.

Note that if you don't want to wait until the 11.0 release, on Linux the PGI ACC model can be mixed with CUDA Fortran. So instead of using a data region, you can use CUDA Fortran device arrays. It means that your program is no longer portable and that you'd want to back these changes out once 11.0 is available, but is less work than inlining your subroutines and allows you to continues development.

- Mat
Back to top
View user's profile
Ankhazam



Joined: 24 Aug 2010
Posts: 7

PostPosted: Thu Sep 30, 2010 12:30 am    Post subject: Reply with quote

Ok, so yet either CUDA Fortran or manual inlining :) Thank You for support.
Back to top
View user's profile
Ankhazam



Joined: 24 Aug 2010
Posts: 7

PostPosted: Mon Nov 15, 2010 6:37 am    Post subject: Reply with quote

Hello there,
where should the !$acc reflected statement be located in the subroutines?
Just under the routine definition or at the beginning of the body after all variables/common blocks, etc. lines?
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Nov 16, 2010 8:37 am    Post subject: Reply with quote

The reflected directive should be added after the variable is declared.

Note the reflected will be available in the 11.0 release due this December.

- Mat
Back to top
View user's profile
Ankhazam



Joined: 24 Aug 2010
Posts: 7

PostPosted: Thu Nov 18, 2010 4:31 am    Post subject: Reply with quote

Ok, could You provide an example please :)
Yet in December? It is already documented in the Programming Model Guide :)
Any ETA when exactly in December will You release the 11th compiler suite?
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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