mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-01 16:33:16 +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);
|
Moses2::System system(params);
|
||||||
timer.check("Loaded");
|
timer.check("Loaded");
|
||||||
|
|
||||||
|
if (params.GetParam("show-weights")) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
//cerr << "system.numThreads=" << system.options.server.numThreads << endl;
|
//cerr << "system.numThreads=" << system.options.server.numThreads << endl;
|
||||||
|
|
||||||
Moses2::ThreadPool pool(system.options.server.numThreads, system.cpuAffinityOffset, system.cpuAffinityOffsetIncr);
|
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")) {
|
if (params.GetParam("show-weights")) {
|
||||||
cerr << "Showing weights then exit" << endl;
|
cerr << "Showing weights then exit" << endl;
|
||||||
featureFunctions.ShowWeights(weights);
|
featureFunctions.ShowWeights(weights);
|
||||||
exit(1);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << "START featureFunctions.Load()" << endl;
|
cerr << "START featureFunctions.Load()" << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user