PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Scalar variable live-out from loop
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
WmBruce



Joined: 18 May 2009
Posts: 14

PostPosted: Thu Sep 02, 2010 11:39 am    Post subject: Scalar variable live-out from loop Reply with quote

Hi,

There is a loop in the program I am working that gives the following restriction when compiled.

Code:
702, Accelerator restriction: scalar variable live-out from loop: .dY0022


It runs in parallel but does not do vector(256) even when explicitly defined. And I do not have any variable that resembles .dY0022. Anyone got any thoughts?
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Thu Sep 02, 2010 12:29 pm    Post subject: Reply with quote

Hi,

That is a compiler generated temporary variable for an optimized variable. There should be another similar message right before that one with the actual variable in your code. If you can fix that actual variable, this cryptic name should go away too.

Hope this helps.
Hongyon
Back to top
View user's profile
WmBruce



Joined: 18 May 2009
Posts: 14

PostPosted: Fri Sep 03, 2010 12:00 pm    Post subject: Reply with quote

Here are the lines around that line:

Code:
       Generating copyin(h0(:))
  660, Generating !$acc update device(datin1(:,:))
  679, Generating !$acc update device(datinlns(:,:,:))
  688, Generating !$acc update device(seeds(:))
  699, Generating compute capability 1.3 binary
  702, Accelerator restriction: scalar variable live-out from loop: .dY0022
       Accelerator kernel generated
      702, !$acc do parallel


and also does anyone know what this means:

Code:
    703, Accelerator restriction: induction variable live-out from loop: ln2


thanks
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Fri Sep 03, 2010 12:55 pm    Post subject: Reply with quote

Hi,

Is it possible to either post snippet of your code that show the message or send something to trs@pgroup.com? So we can look at it and let you know how to avoid the the message Accelerator restriction.

Thank you,
Hongyon
Back to top
View user's profile
WmBruce



Joined: 18 May 2009
Posts: 14

PostPosted: Wed Sep 08, 2010 9:44 am    Post subject: Reply with quote

Here is the area around 702:
[/code] !$acc region do vector(256), parallel, private(iy,ix,k,stau,dl,alphadl,h,i,u,fudge, &
!$acc fn,starlns,nu0,vlam0,dvlam,dnudop,a,izkm,zfrac,z2,xr,gauslor,gauslor1,lorrnd,gaussrnd, &
!$acc rnd3,rnd2,rnd1,sigma1,sigma,prob,cul,t,star,flag,iflag,check,igarbage,c3,r2,r,phi,logrfp,rfp,alphapi,nu,shellsize)
do ln2 = 1,nlines
thetaout(ln2)=theta
iesc(ln2)=0

!initialize random num generator using the seeds created in the cpu
iy=ior(ieor(888889999,seeds(ln2)),1)
ix=ieor(777755555,seeds(ln2))

Line 702 is the do loop line.

the line:"induction variable live-out "in the diagnostics does not mean anything to us.

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
Goto page 1, 2  Next
Page 1 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