You can run bjam with --debug-configuration and look for:
bash -c "g++ -ltcmalloc_minimal -x c++ - <<<'int main() {}' -o
/home/kpu/mosesdecoder/dummy >/dev/null 2>/dev/null && rm
/home/kpu/mosesdecoder/dummy 2>/dev/null"
The next line is the return code. If it's 0, then tcmalloc_minimal will
be linked in. Or run with -d2 and look for -ltcmalloc_minimal in the
linker command line.
Kenneth
On 11/18/12 17:59, Christophe Servan wrote:
> Hi Ken,
> how to be sure the link is ok as my moses is compiled as static ?
>
> Christophe
>
>
> Le 17/11/2012 15:24, Kenneth Heafield a écrit :
>> Dear Moses,
>>
>> With a hat tip to Phil Williams, you should use tcmalloc with
>> multi-threaded Moses.
>>
>> I ran a syntactic de-en Moses system on 32 cores with pop 100. The same
>> probably applies to phrase-based.
>>
>> Without tcmalloc:
>>
>> VmPeak 42978088 kB
>> VmRSS 40062688 kB
>> real 87m17.808s
>> user 1816m42.584s
>> sys 96m15.599s
>>
>> With tcmalloc:
>>
>> VmPeak 38649112 kB
>> VmRSS 37774584 kB
>> real 57m21.610s
>> user 1452m29.026s
>> sys 34m41.325s
>>
>> If tcmalloc is installed, Moses will link against it automatically when
>> built multi-threaded.
>>
>> The homepage is https://gperftools.googlecode.com/. Also read Moses's
>> BUILD-INSTRUCTIONS.txt . Note that you should do a clean Moses compile
>> (-a) after installing tcmalloc.
>>
>> Kenneth
>> _______________________________________________
>> Moses-support mailing list
>> [email protected]
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support