This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/63700] It is impossible to set the OpenMP stack size from inside a program
- From: "walter.zimmer at dlr dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Feb 2018 12:03:33 +0000
- Subject: [Bug libgomp/63700] It is impossible to set the OpenMP stack size from inside a program
- Auto-submitted: auto-generated
- References: <bug-63700-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63700
--- Comment #2 from Walter Zimmer <walter.zimmer at dlr dot de> ---
We upgraded to gcc 7 and it seems nothing has changed in setting the stack size
(except for Darwin).
One solution would be to add a gomp call to alter the stack size in
gomp_thread_attr after it was initialized by OMP_STACK_SIZE but before the
first thread is created.
Another possibility, as mentioned by Joost, would be to be able to define the
default stack size from the program (compile time would also be fine for us).
What is your preference? For version one we could provide an implementation.
We really would like to get rid of this external dependency...