PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Split acc line

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



Joined: 29 Jun 2010
Posts: 26

PostPosted: Wed Oct 13, 2010 1:40 am    Post subject: Split acc line Reply with quote

Hello!

I have a simple question, but I cannot find an answer anywhere. Can you tell me how can I split the !$acc local(...) line?
I have a lot of local variables, so there is a compile error because of the line length. How can I split this line on two-three?
I've tried doubling the line:

Code:
!$acc local(var1,var2,...,varn)
!$acc local(varn+1,...)

But it gave an error. I also tried to use '\' operator. Also an error.

Any ideas?
Thanks
Back to top
View user's profile
WENYANG LIU



Joined: 26 Sep 2010
Posts: 11

PostPosted: Wed Oct 13, 2010 6:14 am    Post subject: Reply with quote

Hi, here is what i do to split the line in fixed-form fortran:
Code:

!$acc data region
!$acc& copyin(a(1:n),b(1:n,1:n)),
!$acc& local(c(1:n)
!$acc&        )
Back to top
View user's profile
szczelba



Joined: 29 Jun 2010
Posts: 26

PostPosted: Thu Oct 14, 2010 7:02 am    Post subject: Reply with quote

All right. Thanks!
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