CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

fortran compiler

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2006, 03:47
Default fortran compiler
  #1
yfyap
Guest
 
Posts: n/a
hi there, i am currently using Compaq Visual Fortran Professional Edition 6.5.0. when i was compiling files with large arrays, the following messege pops up: total image size -2110959616 exceeds max (268435456) i guess the arrays that i have exceeded the limits of the compiler. is there any fortran compiler running on windows xp platform available to handle large arrays? thanks in advance. yfyap
  Reply With Quote

Old   February 13, 2006, 06:10
Default Re: fortran compiler
  #2
Renato.
Guest
 
Posts: n/a
It has nothing to do with your Fortran compiler. It's due the amount of memory you have that isn't enough to hold your array. You could change your static array by allocatable but your lack of memory problem, probably, would return during run time. Sorry, buy more memory...

Cheers

Renato.

  Reply With Quote

Old   February 13, 2006, 06:47
Default Re: fortran compiler
  #3
Renato.
Guest
 
Posts: n/a
By the way, what's the size of your array? Does it fit in your system memory?

If your problem comes up within a subroutine and you have enough memory to load your array this problem can be due a lack of stack memory reserved to subroutines.

Regards

Renato.
  Reply With Quote

Old   February 13, 2006, 09:55
Default Re: fortran compiler
  #4
yfyap
Guest
 
Posts: n/a
hi, currently i have 1.2 Gigabyte of SDRAM. could u enlighten me the difference between system memory and stack memory? thank you very much and have a nice day! yfyap
  Reply With Quote

Old   February 13, 2006, 09:57
Default Re: fortran compiler
  #5
ag
Guest
 
Posts: n/a
There is a link command that you can specify when you build to allocate more stack space. I can't remember what it is off the top of my head but it is buried somewhere in the documentation. I have the same compiler and allocating more stack space during linking should remedy your problem.
  Reply With Quote

Old   February 13, 2006, 10:05
Default Re: fortran compiler
  #6
Curious
Guest
 
Posts: n/a
Yes Ag, you're right.

I guess the link command is /STACK:[value] (take a look in the Compaq's help using this keyword. It's all there.)

NOTE: this link command will only increase the memory available for stack use. If your system doesn't have enough memory to load your array, it'll not work.

Regards

Renato.
  Reply With Quote

Old   February 13, 2006, 10:14
Default Re: fortran compiler
  #7
Renato.
Guest
 
Posts: n/a
So,

What's the size of your array?

suppose:

real*8 :: a(10000,10000) ! 10,000^2 * 8 bytes

you'll need, approximately:

10,000 * 10,000 * 8 = 8x10^8 bytes/1024 -> 7.81x10^5 Kb/1024 -> 7.629 x 10^2 Mb -> 0.74 Gb

have you done this estimative?

Regards

Renato.

  Reply With Quote

Old   February 13, 2006, 10:31
Default Re: fortran compiler
  #8
yfyap
Guest
 
Posts: n/a
hi... thanks.. actually i did not do such an estimation for the memory required, i will check this. thank you very much! yfyap
  Reply With Quote

Old   February 13, 2006, 10:34
Default Re: fortran compiler
  #9
yfyap
Guest
 
Posts: n/a
hi thanks!
  Reply With Quote

Old   February 14, 2006, 12:22
Default Re: fortran compiler
  #10
Vinod Dhiman
Guest
 
Posts: n/a
Hi Yap

I hope you are from NTU. Well, I didn't read all the messages in thread, however, if there is a problem with matrix manipulation it's better to use dynamics allocation of array.

Vinod Dhiman
  Reply With Quote

Old   February 14, 2006, 23:35
Default Re: fortran compiler
  #11
yfyap
Guest
 
Posts: n/a
yes! i will send u email on this. thanks! yit fatt
  Reply With Quote

Old   February 19, 2006, 07:04
Default Re: fortran compiler
  #12
zonexo
Guest
 
Posts: n/a
actually i've this problem before, cos I just formed the matrix directly, ie a full matrix although it is very sparse. this will create a lot of wasted memory.

however, this problem was solved when i switch to using some sparse linear equations solver such as NSPCG. due to the new format of the matrix, there is considerable saving in memory. maybe you can try.
  Reply With Quote

Old   February 19, 2006, 07:06
Default Re: fortran compiler
  #13
yfyap
Guest
 
Posts: n/a
hi thanks! this would be pretty useful to me.
  Reply With Quote

Old   March 5, 2006, 11:19
Default Re: fortran compiler
  #14
m sohail arshad
Guest
 
Posts: n/a
i have had a similar problem using digital visual fortran. However, the max allowed allocatable stack size is 4294967295 and is independent of tha amount of RAM+virtual memory available in the system
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel Fortran Compiler & Tutorial 17 Young CFX 1 March 30, 2011 02:39
Fortran Compiler and example Young CFX 1 March 22, 2011 23:26
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Fortran compiler Erik Siemens 2 November 28, 2008 21:05
Fortran compiler Arnab Siemens 5 September 14, 2004 04:59


All times are GMT -4. The time now is 02:56.