[Developers] profiling ADMB model with gprof

Ian Taylor Ian.Taylor at noaa.gov
Wed Nov 17 17:37:17 PST 2010


  The which_library() function worked perfectly 
for me--thanks for the information. It returned 
"s" and "o" when it was supposed to in version 10. 
In version 9 perhaps it was not yet resurrected, 
as it always returned "o", regardless of how I 
compiled.

Pasted below is output showing that libado.a was 
65% of the size of libads.a in v9 but the ratio 
was 98% in v10beta, implying that something may 
have gone wrong with the make file for 64 bit 
linux. Allan Hicks just showed me some indication 
that on his Windows computer, things were working 
well with v10beta, providing further support for 
the idea that my slow run times were a problem 
with how ADMB was getting compiled on linux.

[~]$ ls -lh ~/h_itaylor/admb/v9/lib
total 15M
-rwxr--r-- 1 itaylor itaylor 1.5M Aug 18 13:52 
libadmod.a
-rwxr--r-- 1 itaylor itaylor 3.7M Aug 18 13:52 
libado.a
-rwxr--r-- 1 itaylor itaylor 5.7M Aug 18 13:52 
libads.a
-rwxr--r-- 1 itaylor itaylor 116K Aug 18 13:52 
libadt.a
-rwxr--r-- 1 itaylor itaylor 2.0M Aug 18 13:52 
libdf1b2o.a
-rwxr--r-- 1 itaylor itaylor 2.0M Aug 18 13:52 
libdf1b2s.a
-rwxr--r-- 1 itaylor itaylor  32K Aug 18 13:52 
libdf1b2stub.a
[~]$ ls -lh ~/h_itaylor/admb/v10/lib
total 19M
-rwxr--r-- 1 itaylor itaylor 1.9M Nov 10 12:29 
libadmod.a
-rwxr--r-- 1 itaylor itaylor 5.2M Nov 10 12:24 
libado.a
-rwxr--r-- 1 itaylor itaylor 5.3M Nov 10 12:28 
libads.a
-rwxr--r-- 1 itaylor itaylor 166K Nov 10 12:29 
libadt.a
-rwxr--r-- 1 itaylor itaylor 3.0M Nov 10 12:20 
libdf1b2o.a
-rwxr--r-- 1 itaylor itaylor 2.9M Nov 10 12:21 
libdf1b2s.a
-rwxr--r-- 1 itaylor itaylor  33K Nov 10 12:29 
libdf1b2stub.a


On 11/17/2010 3:17 PM, John Sibert wrote:
> The recently resurrected function
> char which_library()
>
> Returns:
>     char containing 'o' if compiled with the 
> OPT_LIB macro; contains 's' otherwise.
>
> But would not tell you if a specific source code 
> file might have been incorrectly compiled 
> withoug the OPT_LIB macro
>
> On 11/17/2010 11:56 AM, dave fournier wrote:
>> If you look at the old libraries you will see 
>> that the safe and optimzied libaries are 
>> different sizes
>> due to the inline code taking up space. That 
>> should give you an idea whether you have optimized
>> code in the new libraries.
>> _______________________________________________
>> Developers mailing list
>> Developers at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/developers 
>>
>>
>


More information about the Developers mailing list