PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Strange compilation failure....

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



Joined: 08 Apr 2010
Posts: 79

PostPosted: Wed Jun 30, 2010 7:17 am    Post subject: Strange compilation failure.... Reply with quote

Hi. I have a piece of device code that is calling a device function:

Code:
          Z(1) =-1.0
          Z(2) = Zi

!          Z = (/ -1.0, Zi /)

          lnL  = r8_coulog( Ep, n, T, A, Z, Bmag )

It works fine. If however, I comment out the two lines that set Z, and uncomment the line that sets Z as a single line of code:

Code:
!          Z(1) =-1.0
!          Z(2) = Zi

          Z = (/ -1.0, Zi /)

          lnL  = r8_coulog( Ep, n, T, A, Z, Bmag )

I get the following compiler error:

Code:
pgfortran -fast wrapper.cuf prec_mod.cuf rand_mod.cuf curk4_mod.cuf MersenneTwister_kernel.o -mp
wrapper.cuf:
prec_mod.cuf:
rand_mod.cuf:
curk4_mod.cuf:
/tmp/pgcudaforLRogVcmMvbuE.gpu(141): error: identifier "z_c_0" is undefined

1 error detected in the compilation of "/tmp/pgnvd0SogCGIz-c5r.nv0".
PGF90-F-0000-Internal compiler error. pgnvd job exited with nonzero status code       0 (curk4_mod.cuf: 1243)
PGF90/x86-64 Linux 10.2-1: compilation aborted

Rather disturbingly, I do have some code that uses Z_C_0 as a parameter, but it's on a different machine on a different cluster, so I don't think this is a problem with my code. Also, the code works OK with the cuda emulator.

Any ideas?
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Jun 30, 2010 2:41 pm    Post subject: Reply with quote

Hi Rob,

Looks like a compiler bug to me. I was able to recreate the problem here and have filed a technical problem report (TPR#17080) and sent it to our engineers.

Thanks for the report,
Mat
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 395

PostPosted: Thu Nov 17, 2011 6:30 pm    Post subject: Reply with quote

Rob,

Some late book-keeping. TPR 17080 was fixed in the 11.1 release of the compilers.

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