mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
Use tcmalloc with multithread if detected.
Change option and documentation to --without-tcmalloc.
This commit is contained in:
parent
c916206e84
commit
be7e78c6bf
8
Jamroot
8
Jamroot
@ -18,8 +18,8 @@
|
||||
#Compact phrase table and compact lexical reordering table
|
||||
#--with-cmph=/path/to/cmph
|
||||
#
|
||||
#Thread-caching malloc (optional):
|
||||
#--with-tcmalloc
|
||||
#Thread-caching malloc (if present, used for multi-threaded builds by default)
|
||||
#--without-tcmalloc
|
||||
#
|
||||
#REGRESSION TESTING
|
||||
#--with-regtest=/path/to/moses-reg-test-data
|
||||
@ -75,9 +75,9 @@ include $(TOP)/jam-files/sanity.jam ;
|
||||
boost 103600 ;
|
||||
external-lib z ;
|
||||
|
||||
if [ option.get "with-tcmalloc" : : "yes" ] {
|
||||
if ! [ option.get "without-tcmalloc" : : "yes" ] && [ test_library "tcmalloc" ] {
|
||||
external-lib tcmalloc ;
|
||||
requirements += <library>tcmalloc ;
|
||||
requirements += <threading>multi:<library>tcmalloc ;
|
||||
}
|
||||
|
||||
if [ option.get "enable-mpi" : : "yes" ] {
|
||||
|
Loading…
Reference in New Issue
Block a user