0

I need to solve Ax=B multiple times and cusparseSolveAnalysisInfo_t is taking huge time inside the loop.

What does cusparseSolveAnalysisInfo_t do in the solution of AX=B? According to the documentation I can create it once and use it for different sets of B. What if I want to use it for different sets of A with the same Sparse structure.

4

1 回答 1

1

参考文档,将info类型的结构cusparseSolveAnalysisInfo_t传递给分析函数,以捕获分析函数创建的数据。然后将其传递(不变)到求解函数以指导求解器。

您可以在这个cuda 示例中看到一个示例用法。

如果更改 A,则必须重新创建它(即,如果更改 A,则必须重新运行分析步骤)。

于 2013-07-20T05:49:03.413 回答