[ADMB Users] survey of memory settings in ADMB
Taylor, Nathan
Nathan.Taylor at dfo-mpo.gc.ca
Fri Mar 23 14:18:11 PDT 2012
Colleagues
For the most memory intensive model that I've built the settings were as follows:
if(bits==64)
{
arrmblsize =15000000;
gradient_structure::set_NUM_DEPENDENT_VARIABLES(20000);
gradient_structure::set_GRADSTACK_BUFFER_SIZE(44702000);
gradient_structure::set_CMPDIF_BUFFER_SIZE (1590000000);
gradient_structure::set_MAX_NVAR_OFFSET(1800);
} else{
//32 bit allocations
arrmblsize =15000000;
gradient_structure::set_NUM_DEPENDENT_VARIABLES(20000);
gradient_structure::set_GRADSTACK_BUFFER_SIZE(30000000);
gradient_structure::set_CMPDIF_BUFFER_SIZE (560000000);
gradient_structure::set_MAX_NVAR_OFFSET(1800);
}
Nathan
-----Original Message-----
From: users-bounces at admb-project.org on behalf of Arni Magnusson
Sent: Fri 3/23/2012 12:27 PM
To: Ian Taylor
Cc: users at admb-project.org
Subject: Re: [ADMB Users] survey of memory settings in ADMB
Thanks for taking this initiative, Ian.
The Coleraine stock assessment model had these settings in the
TOP_OF_MAIN_SECTION back in 2001,
arrmblsize = 250000;
gradient_structure::set_GRADSTACK_BUFFER_SIZE(250000);
gradient_structure::set_CMPDIF_BUFFER_SIZE(1500000);
gradient_structure::set_MAX_NVAR_OFFSET(500);
gradient_structure::set_NUM_DEPENDENT_VARIABLES(500);
and by 2003 the TOP_OF_MAIN_SECTION had changed to:
arrmblsize = 5000000;
gradient_structure::set_GRADSTACK_BUFFER_SIZE(560000);
gradient_structure::set_CMPDIF_BUFFER_SIZE(15000000);
gradient_structure::set_MAX_NVAR_OFFSET(500);
gradient_structure::set_NUM_DEPENDENT_VARIABLES(500);
I presume these changes were made because users had been running into
memory limits relating to 'arrmblsize', 'gradstack_buffer_size', and
'cmpdif_buffer_size'. But I can't vouch whether the authors "put thought
into the choices" or not.
Personally I have almost never run into memory limits, but I hear ADMB-RE
users need to increase the memory limits in most applications.
Arni
On Thu, 22 Mar 2012, Ian Taylor wrote:
> Hi ADMB Users,
>
> The default memory settings in ADMB are out of date and I've been tasked
> with coming up with replacements that will work for reasonable sized
> models (big models will still require manual settings). It occurs to me
> that it makes sense to survey what common requirements of ADMB users
> might be.
>
> Have you been required to change the memory settings for your model
> using either commands like the following in the TOP_OF_MAIN_SECTION,
>
> arrmblsize=500000;
> gradient_structure::set_GRADSTACK_BUFFER_SIZE(200000);
> gradient_structure::set_CMPDIF_BUFFER_SIZE(2100000);
> gradient_structure::set_MAX_NVAR_OFFSET(500);
>
> or through command line arguments like -ams, -gbs, -cbs, or -mno?
>
> If so, and if you've put thought into the choices (rather than blindly
> picking values), could you send me your settings in a reply to this
> email?
>
> Thanks,
>
> -Ian
>
_______________________________________________
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/20120323/ceec24a0/attachment.html>
More information about the Users
mailing list