AMGX icon indicating copy to clipboard operation
AMGX copied to clipboard

How to disable the output during the reading of A and json file process.

Open ztdepztdep opened this issue 2 years ago • 2 comments

The following feedback are generated during the running process, i want to disable it. Could you pleaes give me some infors.

RHS vector was not found. Using RHS b=[1,…,1]^T
Solution vector was not found. Setting initial solution to x=[0,…,0]^T
Finished reading
Cannot read file as JSON object, trying as AMGX config
Converting config string to current config version
Parsing configuration string: selector=AGGRESSIVE_PMIS ; 
Cannot read file as JSON object, trying as AMGX config
Cannot read file as JSON object, trying as AMGX config
Converting config string to current config version
Parsing configuration string: interpolator=MULTIPASS ; 

ztdepztdep avatar May 22 '22 10:05 ztdepztdep

I feel like the configuration warnings are not particularly useful so they could likely just be permanently masked. w.r.t the messages coming out of the MatrixReader, We could add a quiet mode flag so we can mask messages like that.

mattmartineau avatar May 31 '22 07:05 mattmartineau

You can use custom output handler using https://github.com/NVIDIA/AMGX/blob/main/base/include/amgx_c.h#L212 that ignores all of the messages. All of the AMGX output should use this callback to print data. By default it just puts everything to stdout. Print callback can be registered before first call to AMGX

marsaev avatar Jun 01 '22 09:06 marsaev