PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

codes run well with gfortran but report segfault with pgfort

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



Joined: 19 Sep 2012
Posts: 9

PostPosted: Tue Oct 16, 2012 5:58 am    Post subject: codes run well with gfortran but report segfault with pgfort Reply with quote

Code:
 ind = (/(j,j=0,size(ind)-1)/)
 DO i = MIN_VEL_BC,MAX_VEL_BC
   n = COUNT(BTEST(bc_type, i))
   n_velBCcells(i) = n
   IF (n /= 0) velBCcells(1:n,i) = PACK(ind,BTEST(bc_type,i))
 ENDDO

The above code runs well when compiled by gfortran. Now, I use pgfortran to compile it and one segfault(Signalled SIGSEGV) was reported when executing the line:
Code:
IF (n /= 0) velBCcells(1:n,i) = PACK(ind,BTEST(bc_type,i))
.
I printed the n, i here out, they are all within the range. I failed to find any bug here. Does any body has similar experience or have any idea about why this happens? I think it may be caused by the change of compiler.

Your advice is warmly welcomed and will be appreciated.
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Oct 16, 2012 9:00 am    Post subject: Reply with quote

Hi Chinacxt,

This might be the same as a known issue, TPR#18937 that will be fixed in the 12.10 release. If you can, please send a reproducing example to PGI Customer Support (trs@pgroup.com) and we can confirm if it's the same issue. Though, 12.10 should be available in the next few days so you can wait and try 12.10.

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



Joined: 19 Sep 2012
Posts: 9

PostPosted: Tue Oct 16, 2012 7:59 pm    Post subject: Reply with quote

Hi, mkcolg,
Thanks for your information. My current license is PGI Accelerator Server Academic Version, 2-user, can I upgrade my compiler free after 12.10 is released? If it will be released in only a few days, I can wait.
BTW, I cannot provide full codes for customer support since I am not allowed to do so.
Thanks~
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Oct 17, 2012 8:51 am    Post subject: Reply with quote

Hi Chinacxt,

Send a note to sales@pgroup.com. Your subscription ended in August which means that you are not entitled to 12.10. However, since it just expired and 12.10 will most likely fix your issue, we can ask them to extend your subscription by a few months.

Note while not necessary, maintaining a subscription is very helpful. In particular if you are doing any accelerator (GPU) work, this segment is undergoing rapid development and a subscription will keep you up to date.

- Mat
Back to top
View user's profile
Chinacxt



Joined: 19 Sep 2012
Posts: 9

PostPosted: Wed Oct 17, 2012 11:15 pm    Post subject: Reply with quote

Thanks mkcolg, I need to report to my boss~
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