PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Differences in inlining between PGI5.2 and PGI 5.1?

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



Joined: 16 Dec 2004
Posts: 1

PostPosted: Thu Dec 16, 2004 7:58 am    Post subject: Differences in inlining between PGI5.2 and PGI 5.1? Reply with quote

Hi all,

I enclose at the end of this message a simple example whose compilation was fine in PGI 5.1 when inline directives were used.
PGI 5.2, however, raises the warning message,

PGF90-W-0268-Cannot inline subprogram; common block mismatch

I have found no helpful hints in the product documentation to solve this problem

Is the inlining policy changed in PGI 5.2,
with respect to PGI 5.1 ?

Thanks in advance

!!$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

module mod_prova

implicit none

integer :: nslaves
integer, dimension(:), allocatable :: Array

end module mod_prova

!!$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

program prova

use mod_prova

implicit none

integer :: i

nslaves = 7

allocate(Array(2))

i = 5
if (i /= 5) call iinc('A', i)

contains

SUBROUTINE iinc(label, flag)

!!$ use mod_prova

CHARACTER(1), INTENT(IN) :: label
INTEGER , INTENT(IN) :: flag

IF (label == 'D') THEN
WRITE(*,'(A,I3)') "deallocate ==> ", flag
ELSE
WRITE(*,'(A,I3)') "ALLOCATE ==> ", flag
END IF

WRITE(*,*) nslaves

END SUBROUTINE iinc

end program prova
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Dec 20, 2004 2:52 pm    Post subject: Reply with quote

Hello,

It appears that when we changed the way we represented pointers to allocatables, pointer arrays, and pointers in the 5.2 pgf90, it inhibited the inlining of this function. Note that the problem should be corrected in the up coming 6.0 release.

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