- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got this error message when I increased my meshes for calculation. I tried the /heap-arrays tip, but it seems doesn't work in the 10.1.021 version. How to expand the stack size? Is it still 1MB by default?
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Defaults depend on your Windows version, and possibly on whether you mean thread stack, if you used OpenMP or Qparallel. For OpenMP, you would use KMP_STACKSIZE (environment variable or function call).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/heap-arrays should work.
You can increase the stack size by setting the project property Linker > System > Stack reserve size. If you cannot resolve this, please send an example showing the problem to Intel Compiler Support.
You can increase the stack size by setting the project property Linker > System > Stack reserve size. If you cannot resolve this, please send an example showing the problem to Intel Compiler Support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I increased the stack size and it works! Hooray! But the /heap-arrays doesn't seem to work. I got the linking warning like this: LINK: Warning LNK4044: unrecognized option '/heap-arrays'; ignore. I set it in project property Linker > Command Line > Additional Options. Is that right? Thanks, Steve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think it should be added to the Fortran > Command Line > Additional options
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Les is correct, this is a compiler option, not linker. However, you can set it in the IDE directly. Fortran > Optimization > Heap Arrays. Enter 0 in the field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Les and Steve. It's really helpful.
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