PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Compiler segfault with mirror directive

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



Joined: 23 Mar 2012
Posts: 4

PostPosted: Mon Apr 23, 2012 10:02 am    Post subject: Compiler segfault with mirror directive Reply with quote

Hello,

My 500,000 line Fortran95 program was crashing the pgfortran 12.4 compiler when I tried to introduce a mirror directive. In trying to boil it down to a reproducible example, I've got it down to the following 6 lines:

Code:

MODULE test
 IMPLICIT NONE
 REAL(kind=kind(1.d0)) a(1409)
 INTEGER,ALLOCATABLE :: arse(:)
!$acc mirror (arse)
END MODULE test


If I compile that with 'pgfortran -ta=nvidia test.f90', I get :

Code:

pgfortran-Fatal-/home/user/bin/pgi/linux86-64/12.4/bin/pgf902 TERMINATED by signal 11
Arguments to /home/user/bin/pgi/linux86-64/12.4/bin/pgf902
/home/user/bin/pgi/linux86-64/12.4/bin/pgf902 /tmp/user/pgfortranBMZr3HsbP_R.ilm -fn test.f90 -opt 2 -terse 1 -inform warn -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -quad -x 59 4 -x 59 4 -tp nehalem -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -x 120 0x200 -astype 0 -x 124 1 -x 163 0x1 -x 186 1 -accel nvidia -x 176 0x140000 -x 177 0x0202007f -cmdline '+pgfortran test.f90 -ta=nvidia' -asm /tmp/user/pgfortranJMZPGoyiKWs.s


where 'pgfortran --version' gives me:

Code:

pgfortran 12.4-0 64-bit target on x86-64 Linux -tp nehalem
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2012, STMicroelectronics, Inc.  All Rights Reserved.


If I reduce the size of the a vector below 1409, then it compiles perfectly well. This has got to be a compiler bug, right?

D.
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Apr 24, 2012 12:19 pm    Post subject: Reply with quote

Hi D,
Quote:

This has got to be a compiler bug, right?
Yes. A compiler seg fault is a severe error. Though, for me the the file compiles fine. In these cases where it passes on some systems but fails on others, there is typically a UMR or out-of-bounds error, and I do see a UMR. I've written a report (TPR#18650) and sent it on to our engineers for further investigation.

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



Joined: 30 Jun 2004
Posts: 436

PostPosted: Tue Nov 27, 2012 4:56 pm    Post subject: TPR 18650 has been fixed. Reply with quote

This problem (using mirror clause causes pgf902 segv) was fixed in in the 12.5 release.

Thanks for the report.

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