<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Mollie,<br>
As Allan noted, the 16 bit part of the warning is out of date.
However, the warning actually contains a seed of truth: if you enter
-gbs 89478485, you should not get any warnings. It seems to me that
there are two improvements to memory allocation that ADMB could make
in the future (but hasn't yet done so for lack of time or effort):<br>
1. change how these inputs are defined, so that on 64 bit computers
they aren't constrained by the limits of 32 bit integers<br>
2. change an inconsistency between the -gbs input in the command
line and the GRADSTACK_BUFFER_SIZE set in the TPL file where in one
case it is multiplied by the gs_size (48 bytes as noted in the
warning), and in the other it is not (I just can never remember
which is which). In your case, as noted in the warning, your input
value is being multipled by 48, but even before that multiplication,
your 10000000000 was too large.<br>
-Ian<br>
<br>
On 2/1/2011 5:40 PM, Allan Hicks wrote:
<blockquote cite="mid:4D48B5F1.6090002@noaa.gov" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Mollie,<br>
<br>
Another thought, can you let me know what OS you are using and how
much memory you have installed? If your gradfil1.tmp file is
32Gb, you will need to have a lot of memory available to the OS,
which means you need a lot installed and a 64-bit OS.<br>
<br>
The temporary files are written to in memory intensive models when
memory isn't available, so it is actually a feature of ADMB.
Otherwise, you simply would not be able to run the model at all.<br>
<br>
Thanks,<br>
Allan<br>
<br>
On 2/1/2011 4:56 PM, Mollie Brooks wrote:
<blockquote
cite="mid:685FBBBC-9FE3-4EB1-9A76-DF30A3F8B414@ufl.edu"
type="cite">
<div apple-content-edited="true"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: Helvetica; font-size: medium; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;">
<div style="word-wrap: break-word;">
<div><span class="Apple-style-span" style="font-size:
12px;">
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;">Hi,</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;">I'm continually having problems with
memory allocation. I don't understand the
purpose of this error</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;"><br>
</span></font></div>
<div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;"> It appears that the size you are
setting for the</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;"> GRADSTACK_BUFFER is > 64K in a 16
bit word machine.This appears</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;"> to be an error. The maximum size
argument for the function</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;">---
gradient_structure::set_GRADSTACK_BUFFER_SIZE(long
int i) ---</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;">should probably be 89478485</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;">UINT_MAX = 4294967295</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;"> i = 10000000000</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;"> gs_size = 48</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;"> i*gs_size = 480000000000</span></font></div>
</div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;"><br>
</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;">I really do need a buffer larger than
this (otherwise I get a gradfil1.tmp >32GB).
When I ask for a larger buffer in the command
line (-gbs), it behaves erratically: sometimes
it is enough and sometimes I get the
gradfil1.tmp. It's very frustrating. The only
difference between the different runs is the
node on the cluster that the job goes to. Could
that be causing the program to use different
amounts of memory. </span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;">thanks,</span></font></div>
<div><font class="Apple-style-span" size="4"><span
class="Apple-style-span" style="font-size:
14px;">Mollie</span></font></div>
<div> </div>
</span></div>
</div>
</span><br class="Apple-interchange-newline">
</div>
<br>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@admb-project.org">Users@admb-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@admb-project.org">Users@admb-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>