- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using intel fortran on a mac with catalina. My program compiles and runs fine as long as I don't include -qopenmp. When i include that option, I get a segmentation fault. Increasing the stack size from the shell doesn't fix it. Older posts suggest that it can be increased using -stack_size, but it doesn't seem to recognize that in my version. Is there another way to increase stack size, or other potential causes?
Thanks--Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
stacksize is set by the linker. The syntax is to pass -stack_size to the linker. you use -Wl, for passing args to the linker like this
ifort -Wl,-stack_size -Wl,0x1000000 -o hello hello.f90
sorry it took so long to get back to this. Let me know if this works.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will investigate this. I also am surprised that the compiler does not have the -stack_size option. At least I don't see it in -help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ronald,
any luck with the stack size issue?
Thanks--Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
stacksize is set by the linker. The syntax is to pass -stack_size to the linker. you use -Wl, for passing args to the linker like this
ifort -Wl,-stack_size -Wl,0x1000000 -o hello hello.f90
sorry it took so long to get back to this. Let me know if this works.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page