- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get stack overflow with the matmul function with a simple code of this type:
a=matmul(b,c)
where a, b and c are pretty large allocatable arrays. Unfortunately I can not know in advance the size of these matrices to request bigger stack at compilation time.
Is there a way to avoid this problem and still use the matmul function or an equivalent of some sort?
Why is the result placed on the stack and it is not stored directly in a?
Thanks a lot for any suggestions.
a=matmul(b,c)
where a, b and c are pretty large allocatable arrays. Unfortunately I can not know in advance the size of these matrices to request bigger stack at compilation time.
Is there a way to avoid this problem and still use the matmul function or an equivalent of some sort?
Why is the result placed on the stack and it is not stored directly in a?
Thanks a lot for any suggestions.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It would be interesting to see a small but complete example that shows the problem, as well as the compiler version you are using. But if a temp is being created, there is no way I can think of to avoid having it be on the stack.
Steve
Steve
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