[ADMB Users] 4 Gb limits
John Sibert
sibert at hawaii.edu
Sun Nov 20 13:02:08 PST 2011
Hi Alan,
Thanks for the suggestions.
The behavior is the same whether I set the cbs in the tpl or on the
command line.
I'm using the latest version of ADMB (compiled yesterday), and
everything is 64-bit
> $ simple -version
> ADMB Program: simple
>
> ADMB-10.1 optimized libraries compiled with Gnu C++ 4.6.1(64bit)
> Build date: Nov 19 2011
> Revision: 198
>
> Copyright (c) 2008-2011 Regents of the University of California and
> ADMB Foundation
There is either a subtle bug in the somewhere or there is an issue with
the hardware. It is probably time to break out the debugger. I'm testing
it on a an old workstation with 16 64-bit processors and 32Gb memory,
but is is 10 years old. So, I'll be interested to see your test on
different hardware.
It is very easy to build the 64-bit libraries using the latest source
code. From the README.txt:
> 1. Extract source distribution
>
> $ unzip admb-10.1.zip
>
> 2. Change to distribution directory
>
> $ cd admb-10.1
>
> 3. Create configure script
>
> $ make --directory=scripts/configure/
>
> 4. Configure the build files for 32-bit
>
> $ ./configure
>
> or configure the build files for 64-bit.
>
> $ ./configure BUILD_64BIT=yes
>
> 5. Build libraries
>
> $ make
I usually set ADMB_HOME to point to where ever the the build puts the
the libraries without bothering to do make install
Cheers,
John
On 11/20/2011 08:39 AM, Allan.Hicks at noaa.gov wrote:
> Hi John,
>
> I have a couple of thoughts, probably of which you have already taken
> care of. But, here goes:
>
> 1) Make sure that you are using ADMB 10.1. I noticed that the inputs
> were still long int in version 10.0.
>
> 2) Make sure that AMB10.1 is compiled as 64-bit. I noticed that there
> are no 64-bit downloads on the website for ADMB 10.1 in Linux. I also
> could not find 64-bit executables for Linux gcc on Buildbot (I see a
> 64-bit version for gcc 4.5 has been successfully built, but I do not see
> executables). But, given that you are using gcc 4.6, you probably
> compiled it yourself, but I just wanted to make sure.
>
> 3) You may want to try setting the cbs value in the tpl file, just to
> make sure that there is no issue with the reading in from the command line.
>
> If these aren't the answer, I'm not exactly sure where the problem is.
> Because it is at the exact breaking point of an unsigned long int
> (2^32-1 is the maximum) then I imagine that there is something in the
> code that is declared as an unsigned long int and there is a conversion
> issue. This is a bit over my head, and you warned me a while ago that
> converting to 64-bit is not as straightforward as simply changing some
> declarations.
>
> In the meantime, I will try to compile ADMB 10.1 in Linux 64-bit and see
> if I can reproduce your issue and investigate it further.
>
> Sorry that I can't be of more help,
> Allan
>
>
>
>
>
> ----- Original Message -----
> From: John Sibert<sibert at hawaii.edu>
> Date: Saturday, November 19, 2011 6:31 pm
> Subject: Re: [ADMB Users] 4 Gb limits
>
>> Nope. The value of the option behind -cbs is declared as a long
>> long
>> int. See nh99/xmodelm3.cpp.
>>
>> Ian Taylor and Alan Hicks resolved this issue for -gbs.
>>
>> John
>>
>>
>>
>> On 11/19/2011 03:57 PM, Weihai Liu wrote:
>>> I would guess the size for cbs was defined as an unsigned long,
>> which
>>> is 32 bit, its range 0 to 4294967295, so 4294967296 will be just
>> out
>>> of range, although it = 2^32.
>>>
>>>
>>> weihai
>>>
>>> On Sat, Nov 19, 2011 at 8:23 PM, John Sibert<sibert at hawaii.edu
>>> <mailto:sibert at hawaii.edu>> wrote:
>>>
>>> Using simple.tpl
>>>
>>> simple -cbs 4294967295 works fine
>>> simple -cbs 4294967296 hangs
>>>
>>> ubuntu 11.10, 64 bit, 32Gb RAM, gcc 4.6.1
>>>
>>> Any thoughts?
>>> John
>>>
>>> --
>>> John Sibert
>>> Emeritus Researcher, SOEST
>>> University of Hawaii at Manoa
>>>
>>> Visit the ADMB project http://admb-project.org/
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at admb-project.org<mailto:Users at admb-project.org>
>>> http://lists.admb-project.org/mailman/listinfo/users
>>>
>>>
>> --
>> John Sibert
>> Emeritus Researcher, SOEST
>> University of Hawaii at Manoa
>>
>> Visit the ADMB project http://admb-project.org/
>>
>> _______________________________________________
>> Users mailing list
>> Users at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/users
>>
--
John Sibert
Emeritus Researcher, SOEST
University of Hawaii at Manoa
Visit the ADMB project http://admb-project.org/
More information about the Users
mailing list