Skip to content

Interfacing Ginkgo with Eigen and slow performance of gko::read #1731

Answered by MarcelKoch
marco-butz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @marco-butz. Thanks for bringing up the subpar IO performance. The project you linked looks interesting. We will investigate, if it makes sense for us to also use it.
Regarding using Eigen matrices in Ginkgo, could you specify the issues you ran into? From the snippet that you showed, it should be possible to transfer this directly to Ginkgo.
Here is how I would do that, assuming that A.outerIndexPtr gives the row-pointers and A.innerIndexPtr the column indices:

auto row_ptrs_view = gko::make_array_view(exec, A.rows(), A.outerIndexPtr());
auto col_idxs = gko::make_array_view(exec, <nnz of A>, A.innerIndexPtr());
auto vals = gko::make_array_view(exec, <nnz of A>, A.valuePtr());

auto mt…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marco-butz
Comment options

Answer selected by marco-butz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants