PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

PGF90-F-0000-Internal compiler error. Errors in Lowering

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Keith Refson



Joined: 10 Jul 2006
Posts: 14

PostPosted: Tue Sep 25, 2012 6:12 am    Post subject: PGF90-F-0000-Internal compiler error. Errors in Lowering Reply with quote

There is a bug in the entire 12.x series of fortran compilers up to and including 12.8-1
which fails to compile one of the modules in our CASTEP electronic structure code.
Fortunately it has been easy to distil a simple testcase to demonstrate the problem.

Please will someone file a bug report for this.

The error returned is

Quote:
$ pgf90 -V

pgf90 12.8-1 64-bit target on x86-64 Linux -tp nehalem

$ pgf90 -c lowering.f90

Lowering Error: symbol ip$sd is an inconsistent array descriptor
PGF90-F-0000-Internal compiler error. Errors in Lowering 1 (lowering.f90: 29)


Code:

module c

type u
   integer nums
   integer, dimension(:), allocatable  :: numis
   real, dimension(:,:), allocatable :: ip
end type u

integer :: num_cells

contains

subroutine ctest(cell, sc, scv)

implicit none

type(u), intent(in) :: cell
type(u), intent(inout) :: sc
real, dimension(:,:), intent(in) :: scv
real, dimension(3,3)  :: scm

integer :: ni, nj

   do ni=1,10
      nj = ni
      sc%ip(:,nj)= matmul(scm, cell%ip(:,ni) + scv(1,:))
   end do
   
end subroutine ctest
end module c


Keith Refson
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Sep 25, 2012 7:22 am    Post subject: Reply with quote

Hi Keith,

Thanks for the example code. I was able to reproduce the error in 12.8 and confirmed that it appears to be the same as a known issue (TPR#18925). The good news is that the error has been fixed in 12.9 which was just released last week.

Do you mind downloading 12.9 to see if it fixes your issue as well?

Best Regards,
Mat
Back to top
View user's profile
Keith Refson



Joined: 10 Jul 2006
Posts: 14

PostPosted: Wed Oct 10, 2012 2:28 am    Post subject: Reply with quote

Thanks Mat. I now have 12.9 installed and can confirm that this fixes this error, not just in my boiled down example but in the CASTEP code too.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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