AMGX
AMGX copied to clipboard
How to disable the output during the reading of A and json file process.
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 ;
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.
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