# Sources to get source codes for sparse matrix solvers (non-symmetric matrix)

For an implicit scheme I want to solve system $Ax=B$, where $A$ is a non-symmetric square matrix. I want source codes of large sparse matrix solvers (e.g. LU-SGS) to use in my code which is in C language. I have tried preconditioned GMRES code from this site but its getting slow and takes huge amount of memory(sometimes program is getting "killed" automatically).