Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix with number of nonzero more than 2147483647 #318

Open
kiendangtor opened this issue Jul 26, 2024 · 2 comments
Open

Matrix with number of nonzero more than 2147483647 #318

kiendangtor opened this issue Jul 26, 2024 · 2 comments

Comments

@kiendangtor
Copy link

In this call AMGX_RC AMGX_API AMGX_matrix_upload_all(AMGX_matrix_handle mtx, int n, int nnz, int block_dimx, int block_dimy, const int *row_ptrs, const int *col_indices, const void *data, const void *diag_data); the number of nnz is int, and I have a fairly large matrix with nnz larger than the max value of int, how do we solve that issues?

@marsaev
Copy link
Collaborator

marsaev commented Jul 29, 2024

Hello @kiendangtor ,

Unfortunately that is currently not supported for a single GPU.
Technically it seems that with modern GPUs it's feasible to run such matrices in a single GPU so it may make sense. AMGX actually instantiates num_rows/num_cols, num_nnz, and row_offsets, column_indices vector off the template parameter, but I haven't tried it with int64 and I believe in many places we assume int. Let me try to do test build with int64 and see if it's a lot of work to allow it - then maybe you can extend API in your local copy and make it work for your app.

@kiendangtor
Copy link
Author

Thanks @marsaev i hope it will be feasible. I only need nnz to be int64 if it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants