PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Calling functions within the kernels
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
luiceur



Joined: 17 Apr 2011
Posts: 12

PostPosted: Sat Jul 23, 2011 3:35 am    Post subject: Reply with quote

I've managed to create a short program with calls to functions within the same file and in another file. Just with -Minline seems to work, don't if I specify the name of the function though.
In what cases should I use -Mipa=inline then?
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jul 25, 2011 8:53 am    Post subject: Reply with quote

Hi luiceur,

-Minline wont inline functions from another file unless you've first created an extract library or compile them together on the same compilation line. To create an extract library, first compile all your files using "-Mextract=lib:name", then compile again using "-Minline=lib:name".

Quote:
Just with -Minline seems to work, don't if I specify the name of the function though.
I'd need an example since if a function inlines using -Minline, it should also inline if you use the name.

- 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