<div dir="ltr">The comparisons that Allan and I did took place before Dave improved the code in February 2011 by replacing 'int' with 'long long' in the following files:<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div style><div style><div>linad99/df_file.cpp</div><div>linad99/fvar.hpp</div><div>linad99/gradstrc.cpp</div><div>linad99/gs_set.cpp</div><div>nh99/xmodelm3.cpp</div></div></div></blockquote><div class="gmail_extra"><br>
This enabled 64 bit linux versions to use plenty of memory. However, I think there remain places where long is used instead of long long which limits the capacity of 64 bit windows ADMB.</div><div class="gmail_extra"><br>
</div><div class="gmail_extra" style>Last year John Sibert compiled a list of other changes that need to occur or be checked on to ensure that a 64 bit version works to it's full capabilities: <a href="http://www.admb-project.org/redmine/issues/89">http://www.admb-project.org/redmine/issues/89</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>-Ian</div><div class="gmail_extra" style><br></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 1, 2013 at 1:12 PM, Allan Hicks - NOAA Federal <span dir="ltr"><<a href="mailto:allan.hicks@noaa.gov" target="_blank">allan.hicks@noaa.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I agree that this is unfortunate behavior of Windows. Ian Taylor and I did some tests of speed and memory usage between 32-bit and 64-bit compilers and were also puzzled as to why Windows implements long ints as 32-bit. I'm not sure if it is helpful, but a summary of our investigations is here:<div>
<br></div><div><a href="http://www.admb-project.org/developers/benchmarks/ADMBmemoryTest.pdf/view" target="_blank">http://www.admb-project.org/developers/benchmarks/ADMBmemoryTest.pdf/view</a><br></div><div><br></div><div>
Following up on what Arni mentioned about 32-bit and 64-bit compilations, I agree and have set up Visual Studio to compile 32- or 64-bit ADMB programs at my will. Ian Taylor and I set this up to provide 32- and 64-bit Windows versions of Stock Synthesis.</div>
<div><br></div><div>Allan</div><div><br></div><div><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Mar 1, 2013 at 12:44 PM, dave fournier <span dir="ltr"><<a href="mailto:davef@otter-rsch.com" target="_blank">davef@otter-rsch.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">
<div text="#000000" bgcolor="#FFFFFF">
<div>On 13-03-01 11:44 AM, Jeff Laake - NOAA
Federal wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Just a guess here but what happens if you try long
long int</div>
</blockquote>
<br>
I think the right type would be fpos_t<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>See</div>
<div><br>
</div>
<div><a href="http://stackoverflow.com/questions/1523483/does-gcc-support-long-long-int" target="_blank">http://stackoverflow.com/questions/1523483/does-gcc-support-long-long-int</a><br>
</div>
</div><div><div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Mar 1, 2013 at 11:40 AM, dave
fournier <span dir="ltr"><<a href="mailto:davef@otter-rsch.com" target="_blank">davef@otter-rsch.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>On 13-03-01 10:20 AM, Jeff Laake - NOAA Federal
wrote:<br>
<br>
I think the problem is that a long int in windows is
only 32 bytes.<br>
I compiled this in <br>
<br>
gcc -m64<br>
<br>
on linux<br>
<br>
#include <stdio.h><br>
main()<br>
{<br>
int nbits=sizeof(char*);<br>
if (nbits==4)<br>
printf("this is 32 bytes\n");<br>
else if (nbits==8)<br>
printf("this is 64 bytes\n");<br>
else<br>
printf("this can't happen");<br>
<br>
nbits=sizeof(long int);<br>
if (nbits==4)<br>
printf("this is 32 bytes\n");<br>
else if (nbits==8)<br>
printf("this is 64 bytes\n");<br>
else<br>
printf("this can't happen");<br>
<br>
nbits=sizeof(int);<br>
if (nbits==4)<br>
printf("this is 32 bytes\n");<br>
else if (nbits==8)<br>
printf("this is 64 bytes\n");<br>
else<br>
printf("this can't happen");<br>
<br>
}<br>
<br>
on linux I get output<br>
<br>
this is 64 bytes<br>
this is 64 bytes<br>
this is 32 bytes<br>
<br>
using the windows cross compiler I get<br>
<br>
<br>
this is 64 bytes<br>
this is 32 bytes<br>
this is 32 bytes<br>
<br>
so a long int is 32 bytes in the 64 bit version.
Strange eh?<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
<div>
<div>
<blockquote type="cite">
<div dir="ltr">So I installed the 64 bit version of
admb 10.1 and gcc 4.5.2 and the problem persists.
What versions are you using and what type of
machine? I'm running win7 on an 64 bit machine
with 8gb ram. This will be difficult to work this
out if you can't replicate on your machine. What
quantity did you run for -gh? -gh 6 worked for me
but -gh 7 or higher did not. Can you try a higher
-gh value to see if you can get it to fail?
<div> <br>
</div>
<div>regards --jeff</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Mar 1, 2013 at
8:32 AM, Jeff Laake - NOAA Federal <span dir="ltr"><<a href="mailto:jeff.laake@noaa.gov" target="_blank">jeff.laake@noaa.gov</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">This email just came through. I
already replied to user list. I'm was using
the 32 bit. Arni already replied with
instructions on how to get 64 bit version
which wasn't clear from admb site.
<div> <br>
</div>
<div>Thanks for your help.</div>
<span><font color="#888888">
<div><br>
</div>
<div>--jeff</div>
</font></span></div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote"> On Fri, Mar 1,
2013 at 8:28 AM, dave fournier <span dir="ltr"><<a href="mailto:davef@otter-rsch.com" target="_blank">davef@otter-rsch.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">that runs
fine for me. what compiler are you
using?<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div></div></blockquote>
<br>
</div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@admb-project.org" target="_blank">Users@admb-project.org</a><br>
<a href="http://lists.admb-project.org/mailman/listinfo/users" target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>
<a href="http://lists.admb-project.org/mailman/listinfo/users" target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>