PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Applying PGI accelerator to a complex CFD program

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



Joined: 24 Nov 2010
Posts: 4

PostPosted: Thu Dec 02, 2010 12:43 am    Post subject: Applying PGI accelerator to a complex CFD program Reply with quote

This is a followup question on my previous post: http://www.pgroup.com/userforum/viewtopic.php?t=2314

From the compiling info, the CFD program I am testing has a lot of subroutine calls. Based on similar previous posts on this topic, the latest PGI accelerator does not support subroutine calls. The subroutines have to be manually inlined so the accelerator can convert the codes. Is this true for the latest version (I think is 10.9)? If yes, is there any way to go around it?

Thanks!


Shawn
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Dec 02, 2010 2:40 pm    Post subject: Reply with quote

Hi Shawn,
Quote:

Is this true for the latest version (I think is 10.9)?
Yes. However, we understand that this is a major limitation of the model and are actively searching a solution. Changes in the Fermi architecture make it at least possible, although very difficult, to support calling.

Quote:
If yes, is there any way to go around it?
Have you tried having the compiler inline your routines? While not perfect, "-Minline" can auto-inline routines found in the same source file. For whole program inlining, you can try using "-Mipa=inline" or first create and extract library (-Mextract) which can then be used by -Minline. See Chapter 4 of the PGI User's Guide for more details. [url] http://www.pgroup.com/doc/pgiug.pdf [/url]

- 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