[ADMB Users] memory units
Mollie Brooks
mbrooks at ufl.edu
Wed Oct 13 19:41:28 PDT 2010
Hello,
I'm still having trouble allocating memory.
You said "any value greater than 2^31 for any of these inputs will be
truncated, rounded, or otherwise produce unpredictable results"
So how do I allocate more than 2GB?
In my TOP_OF_MAIN_SECTION I have
arrmblsize = 40000000000;
Of course this gets truncated or rounded down.
The program stops and I get this in my output file:
1345314216>=1345294336
No memory for dvar_vectors
Need to increase ARRAY_MEMBLOCK_SIZE parameter
In gradient_structure declaration
thanks,
Mollie
On Sep 10, 2010, at 3:47 PM, Ian Taylor wrote:
> Hi Mollie,
> This topic seems to be frequently asked about, so I'll add something
> about it to the ADMB FAQ: http://admb-project.org/documentation/faq
> This values should be in Bytes, so your arrmblsize = 800000000000
> Bytes = 800000000000/(1024^2) = 762939.5 MB = 800000000000/(1024^3)
> = 745 GB, which is surely more memory than your cluster has available.
>
> However, depending on the compiler, any value greater than 2^31 for
> any of these inputs will be truncated, rounded, or otherwise produce
> unpredictable results. Allan Hicks and I did some work on this topic
> which is available at http://admb-project.org/community/benchmarks/compilers
>
> You can search the users list archives at: http://groups.google.com/group/admb-users/
> -Ian
>
> On 9/10/2010 12:11 PM, Mollie Brooks wrote:
>>
>> Hi all,
>> I'm not very good at understanding hardware.
>> I'm running ADMB on a cluster and have to specify how much memory
>> to allocate.
>> If my ADMB code has the lines
>> arrmblsize = 800000000000;
>> gradient_structure::set_GRADSTACK_BUFFER_SIZE(1.e7);
>> gradient_structure::set_CMPDIF_BUFFER_SIZE(1.e7);
>> gradient_structure::set_MAX_NVAR_OFFSET(5000);
>> gradient_structure::set_NUM_DEPENDENT_VARIABLES(5000);
>>
>> How do I translate this into Megabytes?
>> thanks,
>> Mollie
>>
>> Mollie Brooks
>> Ph.D. Candidate
>> NSF IGERT Fellow
>> Biology Department
>> University of Florida
>> mbrooks at ufl.edu
>> www.zoology.ufl.edu/mbrooks
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20101013/e3d9f94e/attachment.html>
More information about the Users
mailing list