PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

stack overflow with pgf90 and openmp

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
PhilippePARNAUDEAU



Joined: 16 Oct 2013
Posts: 9

PostPosted: Thu Nov 14, 2013 6:26 am    Post subject: stack overflow with pgf90 and openmp Reply with quote

Hi,

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

Quote:

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


The execution fails with this errror :
Quote:
stack overflow: thread 1, max 4KB, used 0KB, request 17408B


I understand the problem is due to the stack, but ulimit give
Quote:
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:
Quote:
2.6.32.54-0.3


Regards.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6138
Location: The Portland Group Inc.

PostPosted: Thu Nov 14, 2013 12:39 pm    Post subject: Reply with quote

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
Back to top
View user's profile
PhilippePARNAUDEAU



Joined: 16 Oct 2013
Posts: 9

PostPosted: Fri Nov 15, 2013 2:18 am    Post subject: Reply with quote

Hi mat,

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


yes, of course.

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


same error.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6138
Location: The Portland Group Inc.

PostPosted: Fri Nov 15, 2013 8:58 am    Post subject: Reply with quote

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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group