PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Strange variable name

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
Alexey A. Romanenko



Joined: 17 Feb 2012
Posts: 31

PostPosted: Mon Jul 16, 2012 6:23 am    Post subject: Strange variable name Reply with quote

Hi all

I have the following piece of code

Code:
!$acc data copyout(U) copy(CG_,B)
!$acc kernels
!$acc loop independent
      do J3 = J3min,J3max
        if (J3.gt.NG3/2) then
          I3 = J3 - NG3
        else
          I3 = J3
        endif
!$acc loop independent
        do J2 = J2min,J2max
          if (J2.gt.NG2/2) then
            I2 = J2 - NG2
          else
            I2 = J2
          endif
!$acc loop independent private(G)
          do J1 = 0,N1-1
            if (J1.gt.N1/2) then
              I1 = J1 - N1
            else
              I1 = J1
            endif
            G(:)= B(:,1) * I1 + B(:,2) * I2 + B(:,3) * I3
            G2 = G(1)**2 + G(2)**2 + G(3)**2
            J2L = J2 - J2min
            J3L = J3 - J3min
            J = 1 + J1 + N1 * J2L + N1 * N2 * J3L
            if (G2.LT.G2MAX .AND. G2.GT.TINY) then
              VG = 8.0_dp * PI / G2
              DU = VG * ( CG_(1,J)**2 + CG_(2,J)**2 )
              U = U + DU
              CG_(:,J) = VG * CG_(:,J)
            else
              CG_(:,J) = 0.0_dp
            endif
          enddo
        enddo
      enddo
!$acc end kernels
!$acc end data


compiler output is
Code:
arom@cuda:~/myproj/Obj$ pgfortran -c -g -Mcuda -acc -ta=nvidia:4.0,time -Minfo=accel ./poison.F
PGF90-W-0155-Compiler failed to translate accelerator region (see -Minfo messages): Could not find allocated-variable index for symbol (./poison.F: 41)
poison:
     40, Generating copyout(д.sqrt)
         Generating copy(b(:,:))
         Generating copy(cg_(:,:))
     43, Loop is parallelizable
         Accelerator kernel generated
         43, !$acc loop gang, vector(256) ! blockidx%x threadidx%x
         71, Sum reduction generated for u
     50, Loop is parallelizable
     57, Loop is parallelizable
     63, Loop is parallelizable
  0 inform,   1 warnings,   0 severes, 0 fatal for poison


Two questions are
1. what does "д.sqrt" name means?
Code:
40, Generating copyout(д.sqrt)

Line 40 is the line with "!$acc data"
2. what does the warning about
Code:
PGF90-W-0155-Compiler failed to translate accelerator region (see -Minfo messages): Could not find allocated-variable index for symbol


I do understand that I don't need to place copyout clause for "U", but anyway...


Last edited by Alexey A. Romanenko on Tue Jul 17, 2012 6:52 am; edited 1 time in total
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jul 16, 2012 9:13 am    Post subject: Reply with quote

Hi Alexey,

The warning is most likely because of a compiler error which in turn is causing the odd "sqrt" copyout. Would you mind sending a reproducing example to PGI Customer Service (trs@pgroup.com)? We'll need to investigate in order to tell the exact problem.

Thanks,
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