mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
segfault with gcc
This commit is contained in:
parent
984894ffad
commit
5f3239963e
@ -30,6 +30,10 @@ int main(int argc, char** argv)
|
||||
Moses2::System system(params);
|
||||
timer.check("Loaded");
|
||||
|
||||
if (params.GetParam("show-weights")) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
//cerr << "system.numThreads=" << system.options.server.numThreads << endl;
|
||||
|
||||
Moses2::ThreadPool pool(system.options.server.numThreads, system.cpuAffinityOffset, system.cpuAffinityOffsetIncr);
|
||||
|
@ -44,7 +44,7 @@ System::System(const Parameter ¶msArg) :
|
||||
if (params.GetParam("show-weights")) {
|
||||
cerr << "Showing weights then exit" << endl;
|
||||
featureFunctions.ShowWeights(weights);
|
||||
exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
cerr << "START featureFunctions.Load()" << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user