CuSolverRf 样本排序错误
CuSolverRf sample sorting error
我在使用 CUSolverRf sample 求解稀疏 196530 x 196530 和 2530239 nnz 矩阵时遇到问题。
我还没有尝试使用 B 向量值(另一个问题),我已经遇到错误:
Error (sorting of the column indecis check failed): (csrColInd1=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
....
逐行分析程序,发现错误原因是数据文件的第一行:
%%MatrixMarket matrix coordinate real symmetric
我原以为语句前面的“%%”是为了让计算机忽略该行。
我提供的矩阵不对称导致了上面的错误。当单词 "symmetric" 被替换为 "general"
时程序运行
希望本课对遇到同样问题的其他人有所帮助。
我在使用 CUSolverRf sample 求解稀疏 196530 x 196530 和 2530239 nnz 矩阵时遇到问题。
我还没有尝试使用 B 向量值(另一个问题),我已经遇到错误:
Error (sorting of the column indecis check failed): (csrColInd1=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
....
逐行分析程序,发现错误原因是数据文件的第一行:
%%MatrixMarket matrix coordinate real symmetric
我原以为语句前面的“%%”是为了让计算机忽略该行。
我提供的矩阵不对称导致了上面的错误。当单词 "symmetric" 被替换为 "general"
时程序运行希望本课对遇到同样问题的其他人有所帮助。