Skip to content

A good way to recycle Gingko data structures at high speeds. #1512

Answered by upsj
QuasarJSPark asked this question in Q&A
Discussion options

You must be logged in to vote

gko::matrix_data is mostly suitable for IO and applications where the matrix assembly is not a costly operation. That doesn't seem to be the case in your application, so I want to suggest either updating the values in-place inside the generated matrix (the ordering of values stays intact when moving from a row-major sorted matrix_data object to a Csr matrix). We have internal functionality to find the nonzero location at a specific column, but we don't expose it yet.
For the initial matrix assembly, you can use device_matrix_data, which is stored in structure-of-arrays (SoA) storage format, which is more suitable for high-performance applications than the array-of-structs (AoS) used in ma…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@QuasarJSPark
Comment options

@upsj
Comment options

@QuasarJSPark
Comment options

@upsj
Comment options

@QuasarJSPark
Comment options

Answer selected by QuasarJSPark
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