Skip to content

Commit

Permalink
Use tcmalloc with multithread if detected.
Browse files Browse the repository at this point in the history
Change option and documentation to --without-tcmalloc.
  • Loading branch information
kpu committed Nov 14, 2012
1 parent c916206 commit be7e78c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jamroot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" ] {
Expand Down

0 comments on commit be7e78c

Please sign in to comment.