Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

openmp option and segmentation fault

Ilker_Temizer
Beginner
423 Views

Dear all,

I've been working on the openmp version of my fortran code for a while now. While the code runs correctly under many circumstances, it gives a segmentation fault when large arrays are allocated outside the parallel region. Incidentally, I had exactly the same version of the code without any openmp commands. When I compiled this code with the -openmp option, it gave the same segmentation fault at exactly the same place. Without the -openmp option, it runs correctly.

I am using intel fortran compiler 10.1 together with intel mkl 10.0.011 on a 64-bit machine. The stacksize is unlimited. I had a problem with the KMP_STACKSIZE for a while but now that is also sufficiently large. I can't quite figure out what the problem might be. Any help/suggestions would be appreciated.

Regards,

ilker

ps: I also tried the latest compiler version (11.0) and the MKL that comes with it. I get a segmentation fault even earlier. Again, only with the openmp option, and even when I run on a single thread.

0 Kudos
1 Reply
Ilker_Temizer
Beginner
423 Views
I am answering to my post because I found the problem. Actually I had a non-critical bug in the code. Somehow, it turned out openmp was more sensitive to this bug. I thought it might be a good idea to record the issue. Thanks. -ilker
0 Kudos
Reply