Emulation mode seg. fault but works fine on the GPU

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.


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