mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Use all cores by default
This commit is contained in:
parent
eefdf3d6ed
commit
6b1c743711
@ -389,7 +389,11 @@ StaticData
|
||||
m_parameter->SetParameter<size_t>(m_timeout_threshold, "time-out", -1);
|
||||
m_timeout = (GetTimeoutThreshold() == (size_t)-1) ? false : true;
|
||||
|
||||
m_threadCount = 1;
|
||||
m_threadCount =
|
||||
#ifdef WITH_THREADS
|
||||
boost::thread::hardware_concurrency() ? boost::thread::hardware_concurrency() :
|
||||
#endif
|
||||
1;
|
||||
params = m_parameter->GetParam("threads");
|
||||
if (params && params->size()) {
|
||||
if (params->at(0) == "all") {
|
||||
|
Loading…
Reference in New Issue
Block a user