Resources

Failure trying to create a large array

0

Hi,

I have a problem creating an array with larger dimensions. I have the following lines in the program and when I set zs to be as large as 1000, the program crashes. I wonder if it is about the GAUSS or the memory in my computer?

orders=sa|sp|z|ze|zs;
ul3=arrayinit(orders,1);

Thank you so much for your help!!

Laura

asked April 25, 2013

2 Answers

1

1. sa=10, sp=10, z=160, se=100
2. 6GB

 

An array that is 10x10x160x100x1000 is going to take up about 11 GB. That is almost twice as much RAM as your computer has. Under the hood, GAUSS is asking your system to give it a block of memory that is 11 GB and your system says that it does not have that much space to give.

Depending upon how much you ask for you should receive either the error: G0030 Insufficient Memory, or the error: G0037 Result too large.

To deal with the memory constraints on your computer you will need to store some of the data on disk and load it into memory as needed. If you post some information about your program, I would be happy to assist you in implementing a solution.

aptech
227
0
  1. Can you tell me what the values of sa, sp, z and ze are when you have this problem?
  2. Do you know how much memory the computer has?
  3. Is your GAUSS 32-bit or 64-bit?
  4. Which GAUSS version of GAUSS are you running (i.e. 10, 11, 12, 13, etc)?
aptech
227