PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

Multiply defined local value in llvm code generated by -O2

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



Joined: 13 Apr 2013
Posts: 5

PostPosted: Sat Feb 15, 2014 3:31 pm    Post subject: Multiply defined local value in llvm code generated by -O2 Reply with quote

The following will not compile with -Mcuda=llvm and -O2, but does compile with -O1.

Code:
subroutine evolve_potl(u,d,potl)
implicit none
integer, parameter :: mx=1024
complex*16, parameter :: im = (0d0,1d0)
complex*16, device, dimension(mx) :: u, d
real*8, device, dimension(mx) :: potl
complex*16 spin
integer i
!$cuf kernel do(1) <<< (*), (*) >>>
do i=1,mx
   spin=exp(im*potl(i))
   u(i)=u(i)*spin
   d(i)=d(i)*spin
enddo
return
end


The error messages are

Quote:
nvvmCompileProgram error: 9.
Error: PGI-14.1-potl-bug-1D.n001.gpu (145, 4): parse error: multiple definition of local value named 'li77'
PGF90-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (PGI-14.1-potl-bug-1D.f90: 1)
PGF90/x86-64 Linux 14.1-0: compilation aborted
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Feb 18, 2014 11:08 am    Post subject: Reply with quote

Thanks Paul. I've added a problem report (TPR#19863) and forwarded it on to engineering. Hopefully we can get this fixed in 14.3.

- Mat
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 563

PostPosted: Fri Mar 14, 2014 1:38 pm    Post subject: TPR 19863 is fixed in 14.3 Reply with quote

TPR 19863 - CUF: User code gets mulitple defined references when compiling -O2 -Mcuda=llvm

has been fixed in the current 14.3

thanks,
dave
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