[irstlm] 92/126: improved log; check on parameters "thread"

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:46:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

giuliopaci-guest pushed a commit to annotated tag adaptiveLM.v0.1
in repository irstlm.

commit 7bc559051ce2c7279da4fd254d761c514b0f41e9
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Fri Sep 18 15:43:31 2015 +0200

    improved log; check on parameters "thread"
---
 src/test-multithreading.cpp | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/test-multithreading.cpp b/src/test-multithreading.cpp
index f7a39a5..1b7842e 100644
--- a/src/test-multithreading.cpp
+++ b/src/test-multithreading.cpp
@@ -103,18 +103,16 @@ int main(int argc, char **argv)
 								(char *)NULL
 								);
 	
-	std::cout << "argc:" << argc << std::endl;
-/*
- if (argc > 0){
-		usage();
-		exit_error(IRSTLM_NO_ERROR);
-	}
-	*/
-	
   GetParams(&argc, &argv, (char*) NULL);
 	
-	std::cout << "help:" << help << std::endl;
-	std::cout << "lmfile:" << lmfile << std::endl;
+	VERBOSE(1, "threads:" << threads << std::endl);
+	VERBOSE(1, "lmfile:" << lmfile << std::endl);
+	VERBOSE(1, "testfile:" << testfile << std::endl);
+	
+	if (threads == 0){
+		threads = 1;
+		VERBOSE(1, "Impossible request for 0 threads; number of threads forced to 1" << std::endl);
+	}
 	
 	if (help){
 		usage();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git



More information about the debian-science-commits mailing list