diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2012-02-09 12:40:11 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2012-02-09 12:40:11 +0400 |
commit | 7f8c6e0d9217ba92e2c213caff24b1d08700e5e0 (patch) | |
tree | f57d010bca8675cddb0c63c3844bea386433e226 /moses | |
parent | 68066fe4a5aad713b78238d4c5bd79ac2e4f90f4 (diff) |
output how many threads specified
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/LM/IRST.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/src/LM/IRST.cpp b/moses/src/LM/IRST.cpp index de29f900e..fd5a024ea 100644 --- a/moses/src/LM/IRST.cpp +++ b/moses/src/LM/IRST.cpp @@ -64,9 +64,10 @@ bool LanguageModelIRST::Load(const std::string &filePath, cerr << "In LanguageModelIRST::Load: nGramOrder = " << nGramOrder << "\n"; const StaticData &staticData = StaticData::Instance(); - if (staticData.ThreadCount() != 1) + int threadCount = staticData.ThreadCount(); + if (threadCount != 1) { - UserMessage::Add("IRST LM not-threadsafe"); + UserMessage::Add(threadCount + " number of threads specified but IRST LM is not threadsafe."); return false; } |