From 7d8ef1a9b40f3accc831deacd0677240f59e2c1e Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Wed, 22 Jun 2016 00:14:35 +0100 Subject: [PATCH] don't set affinity by default --- contrib/other-builds/moses2/System.cpp | 2 +- contrib/other-builds/moses2/legacy/Parameter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/other-builds/moses2/System.cpp b/contrib/other-builds/moses2/System.cpp index cc2557ce8..a84473d07 100644 --- a/contrib/other-builds/moses2/System.cpp +++ b/contrib/other-builds/moses2/System.cpp @@ -28,7 +28,7 @@ System::System(const Parameter ¶msArg) : bestCollector.reset(new OutputCollector()); - params.SetParameter(cpuAffinityOffset, "cpu-affinity-offset", 0); + params.SetParameter(cpuAffinityOffset, "cpu-affinity-offset", -1); params.SetParameter(cpuAffinityOffsetIncr, "cpu-affinity-increment", 1); const PARAM_VEC *section; diff --git a/contrib/other-builds/moses2/legacy/Parameter.cpp b/contrib/other-builds/moses2/legacy/Parameter.cpp index aa23dae60..2b3a128ae 100644 --- a/contrib/other-builds/moses2/legacy/Parameter.cpp +++ b/contrib/other-builds/moses2/legacy/Parameter.cpp @@ -345,7 +345,7 @@ Parameter::Parameter() "A key-value map for context-sensitive translation."); AddParam(misc_opts, "context-window", "Context window (in words) for context-sensitive translation: {+|-|+-}."); - AddParam(misc_opts, "cpu-affinity-offset", "CPU Affinity"); + AddParam(misc_opts, "cpu-affinity-offset", "CPU Affinity. Default = -1 (no affinity)"); AddParam(misc_opts, "cpu-affinity-increment", "Set to 1 (default) to put each thread on different cores. 0 to run all threads on one core");