ceres-solver / ceres-solver

A large scale non-linear optimization library

Home Page:http://ceres-solver.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CHOLMOD print even on silent mode

joshi-bharat opened this issue · comments

I am running Ceres in silent mode.

Even then it prints the sparsification information coming from suitsparse or cholmod. I don't think it is ceres issue. I was curious if anyone knows how to turn this off.

[pose_graph_node-2] Architecture: Linux
[pose_graph_node-2] sizeof(int): 4
[pose_graph_node-2] sizeof(SuiteSparse_long): 8
[pose_graph_node-2] sizeof(void *): 8
[pose_graph_node-2] sizeof(double): 8
[pose_graph_node-2] sizeof(Int): 4 (CHOLMOD's basic integer)
[pose_graph_node-2] sizeof(BLAS_INT): 4 (integer used in the BLAS)
[pose_graph_node-2] Results from most recent analysis:
[pose_graph_node-2] Cholesky flop count: 52784
[pose_graph_node-2] Nonzeros in L: 3632
[pose_graph_node-2] memory blocks in use: 7
[pose_graph_node-2] memory in use (MB): 0.0
[pose_graph_node-2] peak memory usage (MB): 0.0
[pose_graph_node-2] maxrank: update/downdate rank: 8
[pose_graph_node-2] supernodal control: 1 40 (supernodal if flops/lnz >= 40)
[pose_graph_node-2] nmethods: number of ordering methods to try: 1
[pose_graph_node-2] method 0: natural
[pose_graph_node-2] flop count: 52784
[pose_graph_node-2] nnz(L): 3632
[pose_graph_node-2] OK

It's also printing the ceres log

graph_node-2] SparseNormalCholeskySolver::Solve [pose_graph_node-2] Delta Cumulative [pose_graph_node-2] Compute RHS : 0.00003 0.00003 [pose_graph_node-2] Diagonal : 0.00004 0.00006 [pose_graph_node-2] Append : 0.00002 0.00008 [pose_graph_node-2] Append Rows : 0.00001 0.00009 [pose_graph_node-2] InnerProductComputer::Compute : 0.00013 0.00023 [pose_graph_node-2] SparseCholesky::FactorAndSolve : 0.00044 0.00066 [pose_graph_node-2] Total : 0.00000 0.00067 [pose_graph_node-2] [pose_graph_node-2] I20240203 13:49:38.873646 231226 block_sparse_matrix.cc:80] Allocating values array with 20960 bytes. [pose_graph_node-2] I20240203 13:49:38.874262 231226 wall_time.cc:86] [pose_graph_node-2] [pose_graph_node-2] SparseNormalCholeskySolver::Solve [pose_graph_node-2] Delta Cumulative [pose_graph_node-2] Compute RHS : 0.00003 0.00003 [pose_graph_node-2] Diagonal : 0.00003 0.00006 [pose_graph_node-2] Append : 0.00002 0.00008 [pose_graph_node-2] Append Rows : 0.00001 0.00009 [pose_graph_node-2] InnerProductComputer::Compute : 0.00013 0.00022 [pose_graph_node-2] SparseCholesky::FactorAndSolve : 0.00044 0.00066 [pose_graph_node-2] Total : 0.00000 0.00066 [pose_graph_node-2] [pose_graph_node-2] I20240203 13:49:38.874907 231226 block_sparse_matrix.cc:80] Allocating values array with 20960 bytes. [pose_graph_node-2] I20240203 13:49:38.875555 231226 wall_time.cc:86] [pose_graph_node-2] [pose_graph_node-2] SparseNormalCholeskySolver::Solve [pose_graph_node-2] Delta Cumulative [pose_graph_node-2] Compute RHS : 0.00003 0.00003 [pose_graph_node-2] Diagonal : 0.00005 0.00008 [pose_graph_node-2] Append : 0.00002 0.00010 [pose_graph_node-2] Append Rows : 0.00001 0.00011 [pose_graph_node-2] InnerProductComputer::Compute : 0.00014 0.00025 [pose_graph_node-2] SparseCholesky::FactorAndSolve : 0.00045 0.00070 [pose_graph_node-2] Total : 0.00000 0.00070 [pose_graph_node-2] [pose_graph_node-2] I20240203 13:49:38.876190 231226 block_sparse_matrix.cc:80] Allocating values array with 20960 bytes. [pose_graph_node-2] I20240203 13:49:38.876807 231226 wall_time.cc:86] [pose_graph_node-2] [pose_graph_node-2] SparseNormalCholeskySolver::Solve [pose_graph_node-2] Delta Cumulative [pose_graph_node-2] Compute RHS : 0.00003 0.00003 [pose_graph_node-2] Diagonal : 0.00004 0.00006 [pose_graph_node-2] Append : 0.00002 0.00008 [pose_graph_node-2] Append Rows : 0.00001 0.00009 [pose_graph_node-2] InnerProductComputer::Compute : 0.00013 0.00022 [pose_graph_node-2] SparseCholesky::FactorAndSolve : 0.00044 0.00066 [pose_graph_node-2] Total : 0.00000 0.00066

I have set FLAGS_colorlogtostderr = 1 so that I can print other things in my code; which should be set globally within the context of the program. Does it affect printing in ceres?

Looks like I was changing the verbose level in the code. It was fixed after I removed it.