I create a simple matrix, but could get the expected results, I pasted all these CSR matrix format into the first cudss example. I expected results are: [1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9 10], but cuss results are:
[-0.1546, 0.000, -0.0759, 24.8304, 26.5462, 8.8571, -0.0, 18.8404, -0.0085, -0.000, 32.0363, -0.000, 32.363, -0.000, 11.8571, -0.0000, -2.1027, 33.5304, -6.44444, 3.8033, -0.0002, 81.3333]
I tested in other sparse solver and they give expected results.
My cudss version is 0.5. The GPU is laptop RTX1000.
Not sure is my build issue or a bug in cudss?
The CSR matrix is:
int n = 20;
int nnz = 96;
int Ap = {
0, 4, 11, 16, 21, 26, 30, 36, 40, 44,
49, 54, 60, 63, 69, 73, 78, 82, 87, 92,
96
};
int Ai = {
0, 9, 10, 14, 1, 2, 4, 5, 7, 17,
19, 1, 2, 3, 8, 15, 2, 3, 6, 9,
11, 1, 4, 13, 14, 18, 1, 5, 9, 11,
3, 6, 11, 12, 15, 19, 1, 7, 8, 13,
2, 7, 8, 10, 0, 3, 5, 9, 16, 0,
8, 10, 11, 18, 3, 5, 6, 10, 11, 14,
6, 12, 13, 4, 7, 12, 13, 16, 17, 0,
4, 11, 14, 2, 6, 15, 17, 18, 9, 13,
16, 19, 1, 13, 15, 17, 18, 4, 10, 15,
17, 18, 1, 6, 16, 19
};
double Ax = {
4, 5, 7, 5, 7, 4, 5, 2, 8, 2,
5, 4, 4, 2, 6, 7, 2, 5, 4, 6,
5, 5, 7, 3, 8, 8, 2, 7, 1, 3,
4, 4, 6, 6, 7, 3, 8, 6, 5, 1,
6, 5, 5, 3, 5, 6, 1, 4, 4, 7,
3, 3, 2, 6, 5, 3, 6, 2, 1, 5,
6, 7, 5, 3, 1, 5, 8, 4, 3, 5,
8, 5, 1, 7, 7, 4, 3, 3, 4, 4,
6, 3, 2, 3, 3, 3, 6, 8, 6, 3,
6, 1, 5, 3, 3, 1
};
double B = {
86, 193, 124, 124, 169, 62, 146, 113, 106, 103,
95, 109, 83, 122, 60, 145, 128, 112, 121, 62
};