PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

Openacc2.0 routine directive

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



Joined: 26 Feb 2014
Posts: 1

PostPosted: Mon Mar 31, 2014 5:23 pm    Post subject: Openacc2.0 routine directive Reply with quote

I am trying to use the routine directive which is implemented in openacc2.0 to replace the inline functions.
I get this error :
PGC-S-0155-misplaced #pragma acc routine

I used the same syntax for the one more function in the same program it works, but it fails for 2 more functions.

Is there any problem with this.
FYI : I am using PGI/14.2 compiler.

Thanks in advance.
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Apr 02, 2014 10:28 am    Post subject: Reply with quote

Hi Poojachitral,

Can you please post an example? "routine" is new in 14.1/14.2 and it's possible we missed a case.

Note that functions that return structs are not yet supported nor is cross file compilation when targeting AMD targets due to limitations in OpenCL (NVIDIA is fine since we can use a device linker).

- 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