more logging

parent 569e1c90
......@@ -2,6 +2,7 @@ Import('env')
source_files = ['addcrit.cc',
'#src/givaro_wrapper.cc',
'#src/logger.cc',
'#src/monomial.cc',
'#src/critical_pair.cc',
'#src/polynomial_in_matrix.cc',
......
......@@ -4,6 +4,7 @@
#include "./critical_pair.h"
#include "matrices/rowmajmat.h"
#include "./macros.h"
#include "./logger.h"
namespace tinygb {
......@@ -111,7 +112,7 @@ void addcrit(const std::string& mat_newpols_file,
int
main(int argc, char **argv) {
std::cerr << "addcrit: start" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("addcrit start");
(void)argc; // To get rid of the warning -Wunused-parameter argc
tinygb::WORKDIR = (std::string)argv[1];
......@@ -119,7 +120,7 @@ main(int argc, char **argv) {
TINYGB_TRY(tinygb::load_glob_params(tinygb::WORKDIR + "/global_parameters.txt"), "addcrit");
tinygb::addcrit(argv[2], argv[3], argv[4]);
std::cerr << "addcrit: end" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("addcrit stop");
return EXIT_SUCCESS;
}
......
......@@ -2,6 +2,7 @@ Import('env')
source_files = ['buildmats.cc',
'#src/givaro_wrapper.cc',
'#src/logger.cc',
'#src/monomial.cc',
'#src/critical_pair.cc',
'#src/polynomial_in_matrix.cc',
......
......@@ -4,6 +4,7 @@
#include "./common.h"
#include "linalg/matrix_factory.h"
#include "./macros.h"
#include "./logger.h"
namespace tinygb {
......@@ -93,7 +94,7 @@ void buildmats(const std::string& critpairs_file,
} // tinygb
int main(int argc, char **argv) {
std::cerr << "buildmats: start" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("buildmats start");
(void)argc; // To get rid of the warning -Wunused-parameter argc
......@@ -102,7 +103,7 @@ int main(int argc, char **argv) {
TINYGB_TRY(tinygb::load_glob_params(tinygb::WORKDIR + "/global_parameters.txt"), "buildmats");
tinygb::buildmats(argv[2], argv[3], argv[4], argv[5], argv[6], argv[7]);
std::cerr << "buildmats: end" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("buildmats stop");
return EXIT_SUCCESS;
}
......@@ -41,7 +41,6 @@ matmulsub(
} // namespace tinygb
int main(int argc, char **argv) {
std::cerr << "matmulsub: start" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("matmulsub start");
(void)argc; // To get rid of the warning -Wunused-parameter argc
......@@ -51,7 +50,6 @@ int main(int argc, char **argv) {
TINYGB_TRY(tinygb::load_glob_params(tinygb::WORKDIR + "/global_parameters.txt"), "matmulsub");
tinygb::matmulsub(argv[2], argv[3], argv[4], argv[5]);
std::cerr << "matmulsub: end" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("matmulsub stop");
return EXIT_SUCCESS;
}
......
......@@ -61,7 +61,6 @@ rowech(std::string resD_file, std::string resB_file,
int
main(int argc, char **argv) {
std::cerr << "rowech: start" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("rowech start");
(void)argc; // To get rid of the warning -Wunused-parameter argc
......@@ -71,7 +70,6 @@ main(int argc, char **argv) {
TINYGB_TRY(tinygb::load_glob_params(tinygb::WORKDIR + "/global_parameters.txt"), "rowech");
tinygb::rowech(argv[2], argv[3], argv[4], argv[5]);
std::cerr << "rowech: end" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("rowech stop");
return EXIT_SUCCESS;
}
......
......@@ -2,6 +2,7 @@ Import('env')
source_files = ['selcrit.cc',
'#src/givaro_wrapper.cc',
'#src/logger.cc',
'#src/monomial.cc',
'#src/critical_pair.cc',
'#src/polynomial_in_matrix.cc',
......
......@@ -7,6 +7,7 @@
#include "./utils.h"
#include "./critical_pairs_selection_strategy.h"
#include "./macros.h"
#include "./logger.h"
namespace tinygb {
......@@ -26,7 +27,7 @@ void selcrit(const std::string& infile,
} // namespace tinygb
int main(int argc, char **argv) {
std::cerr << "selcrit: start" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("selcrit start");
(void)argc; // To get rid of the warning -Wunused-parameter argc
......@@ -35,7 +36,7 @@ int main(int argc, char **argv) {
TINYGB_TRY(tinygb::load_glob_params(tinygb::WORKDIR + "/global_parameters.txt"), "selcrit");
tinygb::selcrit(argv[2], argv[3]);
std::cerr << "selcrit: end" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("selcrit end");
return EXIT_SUCCESS;
}
......@@ -2,6 +2,7 @@ Import('env')
source_files = ['selred.cc',
'#src/givaro_wrapper.cc',
'#src/logger.cc',
'#src/monomial.cc',
'select_reductors.cc',
'#src/critical_pair.cc',
......
......@@ -7,6 +7,7 @@
#include "./utils.h"
#include "selred/select_reductors.h"
#include "./macros.h"
#include "./logger.h"
namespace tinygb {
......@@ -36,7 +37,7 @@ void selred(const std::string& critpairs_file,
} // namespace tinygb
int main(int argc, char **argv) {
std::cerr << "selred: start" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("selred start");
(void)argc; // To get rid of the warning -Wunused-parameter argc
......@@ -49,7 +50,7 @@ int main(int argc, char **argv) {
mat_ids.push_back(argv[i]);
tinygb::selred(argv[2], argv[3], mat_ids);
std::cerr << "selred: end" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("selred stop");
return EXIT_SUCCESS;
}
......@@ -25,7 +25,6 @@ void utsolve(std::string res_file, std::string matA_file, std::string matB_file)
}
int main(int argc, char **argv) {
std::cerr << "utsolve: start" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("utsolve start");
(void)argc; // To get rid of the warning -Wunused-parameter argc
......@@ -35,7 +34,6 @@ int main(int argc, char **argv) {
TINYGB_TRY(tinygb::load_glob_params(tinygb::WORKDIR + "/global_parameters.txt"), "utsolve");
tinygb::utsolve(argv[2], argv[3], argv[4]);
std::cerr << "utsolve: end" << std::endl;
tinygb::Logger("/tmp/log_tinygb").log("utsolve stop");
return EXIT_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment