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