2016-08-17 84 views
0

我与CUSolverRf sample解决与2530239 nnz矩阵稀疏196530 x 196530的问题。CuSolverRf示例排序错误

我没有与B载体值,但(另一次的问题)试过,我已经有一个错误:

Error (sorting of the column indecis check failed): (csrColInd 1 =2)>= (csrColInd[2]=2)

Error (sorting of the column indecis check failed): (csrColInd[3]=3) = (csrColInd[4]=3)

Error (sorting of the column indecis check failed): (csrColInd[5]=2251) >= (csrColInd[6]=2251)

Error (sorting of the column indecis check failed): (csrColInd[7]=2252) >= (csrColInd[8]=2252)

Error (sorting of the column indecis check failed): (csrColInd[9]=4501) >= (csrColInd[10]=4501)

我试图找出问题和我的分析已经缩小了错误源到“qsort.c”例程,它对对称模式进行排序。

会有人请告诉我该怎么办才能克服这个错误?

而且旁注:我可以和以后如何添加B值?谢谢。

原始数据:

196530 196530 2530239 
1 1 -26860.49266 
2 1 11773.49315 
3 1 557.7137436 
2251 1 11734.57775 
2252 1 2237.629363 
4501 1 557.0786545 
1 2 11714.30627 
2 2 -37958.69476 
.... 

回答

0

分析了线的程序行,发现错误的原因,以数据文件的第一行是由于:

%%MatrixMarket matrix coordinate real symmetric 

我已经承担了声明前面的“%%”是计算机忽略该行。

我提供的矩阵不对称导致上述错误。当“对称”一词替换为“一般”时,程序正常工作

希望本课帮助他人解决同样的问题。