PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

about the derived type variables

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



Joined: 16 Mar 2012
Posts: 75

PostPosted: Fri Nov 23, 2012 7:55 am    Post subject: about the derived type variables Reply with quote

As far as I know, the good application model in the weather and climate always uses derived type variables, in order to adapt to different resolution data. But it seems that OpenACC don't support derived type veriables,doesn't it? Because members of the derived type variable have allocatable or pointer attribute.The data with these kinds of attribute could not transfer data.

How to deal with this kind of variables in OpenACC? Please kindly advise me
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Nov 26, 2012 11:46 am    Post subject: Reply with quote

Hi Teslalady,

OpenACC can use derived types, provided that the type contains only fundamental data types. Derived types may not contain allocatable arrays or pointers since the derived type's data is not contiguous in memory. In this case the user would need to copy the individual members of the derived type.

- 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