Magma sparse matrix with non triangular solver

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
Posts: 1
Joined: Thu Aug 30, 2018 10:11 pm

Magma sparse matrix with non triangular solver

Post by Daothanh » Sun Sep 09, 2018 3:32 am

Dear All.

Currently, I am solving linear equations Ax=b where A includes 1000 matrix size 100x100 and about 500 none zero elements for each matrix, and I want to solve it with sparse matrix and I follow the below example


The problem is this using a triangular matrix but my matrix is stored like the tridiagonal matrix. Is there have any solution to my problem. I want to solve each matrix for each stream using sparse matrix solver.

Thank you in advance.

Posts: 913
Joined: Fri Jan 06, 2012 2:13 pm

Re: Magma sparse matrix with non triangular solver

Post by mgates3 » Mon Sep 10, 2018 12:11 pm

I'm a bit confused — you say you have a 100x100 matrix with 500 non-zeros, but store it as tridiagonal? Shouldn't a 100x100 tridiagonal matrix have at most 298 non-zeros for the main, sub, and super diagonals?

If your matrix is tridiagonal, I suggest using the tridiagonal solver available in LAPACK, either [sdcz]gtsv for non-symmetric, or [sdcz]ptsv for symmetric positive definite. For symmetric indefinite, you would have to use the non-symmetric solver. These routines aren't GPU-accelerated, but tridiagonal matrices are generally very fast to solve.


Post Reply