NVIDIA / AMGX

Distributed multigrid linear solver library on GPU
482 stars 139 forks source link

Cannot read file as JSON object #55

Open drjiathu opened 5 years ago

drjiathu commented 5 years ago

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.

marsaev commented 5 years ago

Does API that loads config return any error code?

drjiathu commented 5 years ago

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.

Jaberh commented 4 years ago

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

marsaev commented 3 years ago

Which API is used to create configuration object?