Fork me on GitHub

Thread Stack Size and Thread Binding

Thread Stack Size:

Compiler Approx. Stack Limit Approx. Array Size (doubles)
Linux icc, ifort 4 MB 700 x 700
Linux pgcc, pgf90 8 MB 1000 x 1000
Linux gcc, gfortran 2 MB 500 x 500
setenv OMP_STACKSIZE 2000500B
setenv OMP_STACKSIZE "3000 k "
setenv OMP_STACKSIZE 10M
setenv OMP_STACKSIZE " 10 M "
setenv OMP_STACKSIZE "20 m "
setenv OMP_STACKSIZE " 1G"
setenv OMP_STACKSIZE 20000
csh/tcsh setenv KMP_STACKSIZE 12000000
limit stacksize unlimited
ksh/sh/bash export KMP_STACKSIZE=12000000
ulimit -s unlimited

Thread Binding: