PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

acc routine and Fortran
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
mkcolg



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

PostPosted: Wed Mar 12, 2014 12:16 pm    Post subject: Reply with quote

Hi Karl,

Good to hear from you!

In order to use OpenACC "routine" in Fortran, there must be a F90 interface and why this wont work without "simple" being a module. Without an interface, the compiler doesn't know that the "routine" directive has been used.

Instead of a module, you could create an explicit interface block inside of "complicated", provided the interface also contains the "routine" directive.

- Mat
Back to top
View user's profile
KarlWilkinson85254



Joined: 17 Jan 2013
Posts: 9

PostPosted: Thu Mar 13, 2014 2:31 am    Post subject: Reply with quote

Hi Mat,

It's been a while :-) Too many projects, too little time...

I did try this with no joy. I also tried adding !$ACC ROUTINE in the interface but that didn't help. I'll revisit the issue later and get back to you with more details.

Cheers,

Karl
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