AMGX icon indicating copy to clipboard operation
AMGX copied to clipboard

Cannot read file as JSON object

Open drjiathu opened this issue 5 years ago • 4 comments

When I use amgx_capi to solve some sparse linear system, it comes out that most of the default configs cannot be loaded into the API. Some default config will be used and the number of AMG levels is set to be 1.

Cannot read file as JSON object, trying as AMGX config Converting config string to current config version

For some large enough sparse systems, these default settings won't converge.

For instance, ../core/configs/FGMRES_AGGREGATION_JACOBI.json will be loaded, however, ../core/configs/FGMRES_CLASSICAL_AGGRESSIVE_HMIS.json and ../core/configs/AMG_CLASSICAL_L1_AGGRESSIVE_HMIS.json will not.

drjiathu avatar Apr 18 '19 16:04 drjiathu

Does API that loads config return any error code?

marsaev avatar May 17 '19 12:05 marsaev

Does API that loads config return any error code?

Actually there is no error code shown. The JSON file will be read as string instead according to the source code. I think the judgement for JSON is stricter than common JSON. This same warning also appears in the MPI example in README.

drjiathu avatar May 22 '19 09:05 drjiathu

Any update on this ? The issue seems to be not resolved yet.

Jaberh avatar May 23 '20 16:05 Jaberh

Which API is used to create configuration object?

marsaev avatar Apr 07 '21 20:04 marsaev