- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Steve and Intel team,
I have been having this problem for a while, and was never able to solve it.
I am consistently receiving a stack overflow message when I try to parallelize a portion of my code. I already tried to set many parameters (stack size, KMP_STACKSIZE, etc...)in order to deal with it, but never successfully.
The code runs well serially, but 2 threads is enough to cause the problem.
For this reason, I am attaching my code together with the necessary data and wonder whether you could have a look at it and shed some light on the issue.
Here are the details of my settings:
Intel Visual Fortran Compiler Professional Edition 11.1
Microsoft Visual Studio 2008
4GB of RAM
Windows XP
Stack Reserve Size set to 1000000000 (any smaller value makes the program crash in another parallelization portion line 202 of Parallel_Emax_MOD.f90)
Running under debug mode I receive the following error message:
Unhandled exception at 0x004bae37 in Estimation_IndInf.exe: 0xC00000FD: Stack overflow.
The error occurs at Line 793 inLoss_Function_IndInf_MOD.f90, where the parallelization is.
I really appreciate any help.
All the best,
Rafael
I have been having this problem for a while, and was never able to solve it.
I am consistently receiving a stack overflow message when I try to parallelize a portion of my code. I already tried to set many parameters (stack size, KMP_STACKSIZE, etc...)in order to deal with it, but never successfully.
The code runs well serially, but 2 threads is enough to cause the problem.
For this reason, I am attaching my code together with the necessary data and wonder whether you could have a look at it and shed some light on the issue.
Here are the details of my settings:
Intel Visual Fortran Compiler Professional Edition 11.1
Microsoft Visual Studio 2008
4GB of RAM
Windows XP
Stack Reserve Size set to 1000000000 (any smaller value makes the program crash in another parallelization portion line 202 of Parallel_Emax_MOD.f90)
Running under debug mode I receive the following error message:
Unhandled exception at 0x004bae37 in Estimation_IndInf.exe: 0xC00000FD: Stack overflow.
The error occurs at Line 793 inLoss_Function_IndInf_MOD.f90, where the parallelization is.
I really appreciate any help.
All the best,
Rafael
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not had time to study your code but try using /heap-arrays:n where n is a minimum number of kilobytes. It should allocate youre larger local arrays on the heap and require less stack.
Andy Smith
Andy Smith
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not had time to study your code but try using /heap-arrays:n where n is a minimum number of kilobytes. It should allocate youre larger local arrays on the heap and require less stack.
Andy Smith
Andy Smith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Andrew Smith
Not had time to study your code but try using /heap-arrays:n where n is a minimum number of kilobytes. It should allocate youre larger local arrays on the heap and require less stack.
Andy Smith
Andy Smith
Andrew,
Many thanks, that worked.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page