PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

OpenMP Threadprivate in CUDA Fortran

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Balkrishna



Joined: 22 Mar 2010
Posts: 6

PostPosted: Thu Feb 28, 2013 4:22 am    Post subject: OpenMP Threadprivate in CUDA Fortran Reply with quote

Hi,

Can I declare a device allocatable array as Threadprivate in CUDA Fortran? If yes, can you please show this through an example. I am using PGI version 12.9.

If not, how can I map a CPU ThreadPrivate declared Array to a GPU Array?
Any direct mechanism to do that?

Thanks in advance.

N.B.:- Same query posted in "Accelerator Programming" forum, so re-posting in more relevant forum.
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Feb 28, 2013 3:22 pm    Post subject: Reply with quote

Hi Balkrishna,

Sorry, but no device allocatable array can not be Threadprivate. They can be put in a private clause for an OpenMP region provided that you do the allocation within the parallel region and after the context to the device has been created.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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