stack overflow with pgf90 and openmp

Hi,

I build a multi threads executable with pgf90 and openmp directives with this directive in the makefile :

FFLAGS = -r8 -C -O0 -mp=numa

The execution fails with this errror :

stack overflow: thread 1, max 4KB, used 0KB, request 17408B

I understand the problem is due to the stack, but ulimit give

core file size (blocks, -c) 1
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 5166883
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) 10485760
open files (-n) 16384
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 5166883
virtual memory (kbytes, -v) 535346960
file locks (-x) unlimited

I try to use :
export OMP_STACKSIZE with different value, but error persists.

Some idea ?
My system operating is a Suse with this kernel:

2.6.32.54-0.3

Regards.

Hi Philippe,

Can you send a reproducing example to PGI Customer Service (trs@pgroup.com)?

I think this is a false negative given that the max stack size is listed as 4KB. Does the program run correctly if you remove the -Mchkstk flag? I’m thinking there’s a problem with OpenMP and -Mchkstk.

Thanks,
Mat

Hi mat,

Can you send a reproducing example to PGI Customer Service (> trs@pgroup.com> )?

yes, of course.

Does the program run correctly if you remove the -Mchkstk flag?

same error.

Odd. That message should only occur if -Mchkstk is enabled. Otherwise as stack overflow would produce a seg fault.

Best to have customer service determine the problem.

Thanks,
Mat