Hi,
I tried to implement the CG-code given by this Paper “Incomplete-LU and Cholesky Preconditioned Iterative Methods Using CUSPARSE and CUBLAS” from NVIDIA. But on my matrix it does not converged. In each iteration step the value of rho increases in huge steps. After abaut 100 steps, its number^(199) and then #QNAN. So something must be wrong, because I know that a CG without preconditioner will converge. Also a ILU(0) with cg will converge(both variants a working well for me). So I think there must be a failure on the data structur. Perhaps somebody has get it worked and can answer my following questions:
- I have to copy the upper triangular an GPU. Have I to split the resulting matrix from ILU(0) using a new csr matrix wehere only the upper triangular is in?(I did it so)
- Which matrixtype I have to set for descrA/descrpR/descrR(GENERAL/TRIANGUALR/TRIANGULAR)?
- Are there special initialisations for the cusparseDcsr_solve?
I attached the paper
Cheers,
Jürgen