Intel® oneAPI HPC Toolkit
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
1918 Discussions

Segmentation fault with ifort -openmp

inkant
Novice
322 Views

Processor info : Intel dual processor, quad code

Memory : 16GB

I have been able to compile and run my code in the serial mode. However, after including 'omp_lib.h' and with Openmp worksharing constructs, I get Segementation fault, which happens even if I remove the worksharing constructs. i.e

The program runs with ifort < > -o <>

failes with ifort -openmp <> -o <> (Even after commenting(removing) the OMP pragmas)

I have tried increasing environment variable KMP_STACKSIZE, but that is not help ful.

Inkant

0 Kudos
2 Replies
inkant
Novice
322 Views
Quoting - inkant

I am replying to my thread Since I found the solution

It was a stack overflow.

I could remedy it by using

ulimit -s 2048000 (you can choose an appropriarte) number ... then changing the same in /etc/security/limits.conf (to have it changed permanently).

then export KMP_STACKSIZE=2048000000 (i chose very high value, since it is only a limit)

Processor info : Intel dual processor, quad code

Memory : 16GB

I have been able to compile and run my code in the serial mode. However, after including 'omp_lib.h' and with Openmp worksharing constructs, I get Segementation fault, which happens even if I remove the worksharing constructs. i.e

The program runs with ifort < > -o <>

failes with ifort -openmp <> -o <> (Even after commenting(removing) the OMP pragmas)

I have tried increasing environment variable KMP_STACKSIZE, but that is not help ful.

Inkant

dan0112
Beginner
322 Views
That solved my problem, thanks so much!

Running Intel Fortran Composer XE 2011 Update 1 on an Ubuntu 10.10 32bit system with 4 GB Ram.
Reply