Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

OMP: Error #29: Unable to set OMP thread stack size

$
0
0

Hello-

I'm running into some trouble after compiling a very simple fortran code with a few OpenMP directives on RHEL 4 using the Intel Fortran 11.1.075 compiler. Using the following compile flags

ifort  -O -static -openmp -openmp-link static -o test_omp.exe main.f90

I encountered the following error messages

>./test_omp.exe
  THREADS      =  2
  OMP_STACKSIZE= 16M
OMP: Error #29: Unable to set OMP thread stack size to 16777216 bytes:
OMP: System error #22: Invalid argument
OMP: Hint: Try changing OMP_STACKSIZE and/or the shell stack limit.
forrtl: error (76): Abort trap signal
Abort

However, if I recompile with (dropped -static)

ifort  -O -openmp -openmp-link static -o test_omp.exe main.f90

The program terminates correctly

>./test_omp.exe
  THREADS      =  2
  OMP_STACKSIZE= 16M
  NORMAL TERMINATION

Evidently there is a conflict between -static and -openmp-link static.

Is -openmp-link static sufficient for a static compile? Can I verify this somewhere?

I would like to compile in RHEL 4 and execute the program in RHEL 6.4

Thanks in advance


Viewing all articles
Browse latest Browse all 2746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>