Skip to content

How to integrate ginkgo with my hydrodynamic model as an external library? #1970

@lj-cug

Description

@lj-cug

Dear Developers,
ginkgo is a powerful linear solver that can be ported into different processors including Nvidia, Intel and AMD etc. I have integrated PETSc, AmgX with my hydrodynamic code, and ginkgo also attracted me. Before using ginkgo, I have some questions to consult with developers, and hope you can guide me:
(1) I can see the distributed multi-grid algorithm implemention in examples code, and I want to know how to inject PETSc Mat A and Vector b into ginkgo's A and b?
Because my hydrodynamic code uses PETSc to integrate the external linear algebraic library AmgX (Nvidia) like the project AmgXWrapper? In setA.cpp of AmgXWrapper, the folowing function can easily upload my assembly PETSc-CSR matrix into AmgX following (Vector b operation is alike):

AMGX_matrix_upload_distributed(
AmgXA, nGlobalRows, nLocalRows, row[nLocalRows],
1, 1, row.data(), col.data(), data.data(),
nullptr, dist);

(2) Does the MPI-parallelized ginkgo (the distributed solvers) achieve the production-level application? And the application in multi-GPU clusters?

(3) Can the example code in external-lib-interfacing be used to implement the above-mentioned AmgXWrapper ?

Sincerely,
Li Jian
China University of Geoscience

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions