PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Emulation mode seg. fault but works fine on the GPU

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



Joined: 28 Jul 2010
Posts: 68

PostPosted: Thu Jun 28, 2012 3:50 am    Post subject: Emulation mode seg. fault but works fine on the GPU Reply with quote

Hi there,

I wonder if anyone has seen this error before and if so what was the cause of it. The code I'm porting seems to run fine on the GPU but when I changed to emulation mode in order to print an array it resulted in the program failing with a segmentation fault.

How can this be?

I'm quite puzzled as I would have thought that if it didn't work on 1 thread it certainly wouldn't work on several.

Any thoughts or wisdom welcome.

Cheers,
Crip_crop
Back to top
View user's profile
crip_crop



Joined: 28 Jul 2010
Posts: 68

PostPosted: Thu Jun 28, 2012 6:55 am    Post subject: Reply with quote

Fixed the problem... emulation mode didn't like my automatic arrays in host code which was easily solved by declaring them allocatable.

crip_crop
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