PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

how to force variables to use heap memory in pgfortran

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Praveen Kulkarni



Joined: 10 Mar 2013
Posts: 1

PostPosted: Mon Mar 11, 2013 3:35 am    Post subject: how to force variables to use heap memory in pgfortran Reply with quote

What is the equivalent of -mcmodel for compiling fortran program on windows.

this page talks of /heap-arrays[:size] option for windows for Intel compiler

Is there such option available for pgfortran. Please let me know how to force stack variables to move on heap.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6213
Location: The Portland Group Inc.

PostPosted: Mon Mar 11, 2013 9:27 am    Post subject: Reply with quote

Quote:
What is the equivalent of -mcmodel for compiling fortran program on windows.
There isn't one since the medium memory model requires OS support and Windows does not support it. Though, this only effects static memory. For large (> 2GB) dynamically allocated arrays, you can add the flag "-Mlarge_arrays".

Quote:

this page talks of /heap-arrays[:size] option for windows for Intel compiler

Is there such option available for pgfortran. Please let me know how to force stack variables to move on heap.
"-Mnostack_arrays", but this is our default behavior so the flag is not needed. To set the stack size, please use the link time flag "-stack=<reserve>[:<commit>]".

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group