PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Performance of OpenACC data create
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
odlantern



Joined: 30 Aug 2010
Posts: 17

PostPosted: Thu Jun 20, 2013 12:10 pm    Post subject: Reply with quote

Thanks Matt,

I actually just finished a modification that got around this issue (not in the way I wanted to because I was hoping to use a full 100% OpenACC solution and avoid CUDA) by declaring the temporary variables via

real, device :: array( ... )

and then using

!$acc data deviceptr(...)

This sped up the allocation by about a factor of 3.

~David
Back to top
View user's profile
odlantern



Joined: 30 Aug 2010
Posts: 17

PostPosted: Fri Jun 21, 2013 2:35 pm    Post subject: Reply with quote

Is there a way to turn on this program-wide PGI_ACC_SYNCHRONOUS=1 behavior from within a Fortran program via some OpenACC routine rather than having to set an environmental variable externally? I apologize if this is has an obvious answer, I have searched everywhere through the documentation and couldn't find anything.
Back to top
View user's profile
odlantern



Joined: 30 Aug 2010
Posts: 17

PostPosted: Mon Jun 24, 2013 1:34 pm    Post subject: Reply with quote

It looks like all of the inefficiency issues I am seeing could be fixed with the OpenACC device_resident clause. Is there a plan to implement this soon?
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jun 24, 2013 4:54 pm    Post subject: Reply with quote

Hi David,

I'm not sure where we're at on device_resident. I'm away at a conference and having challenges with email so can't ask at the momemnt.

If you're using Fortran, you can use the PGI Accelerator Model's "!$acc mirror" directive which is essentially the same.

- 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
Goto page Previous  1, 2
Page 2 of 2

 
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