arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1210.6412cs.DCcs.LO
收藏

计算可达概率的迭代法的顺序实现和GPU实现的比较

A Comparison of Sequential and GPU Implementations of Iterative Methods to Compute Reachability Probabilities

Elise Cormie-Bowins

摘要:

我们考虑计算可达性概率的问题:给定一个马尔可夫链,马尔可夫链的初始状态,以及马尔可夫链的一组目标状态,从初始状态到达任何目标状态的概率是多少?这个问题可以简化为求解一个线性方程Ax = b,其中A是一个矩阵,b是一个向量。我们考虑两种求解线性方程的迭代法:Jacobi方法和双共轭梯度稳定(BiCGStab)方法。对于这两种方法,顺序和并行版本已经实施。并行版本已在计算统一设备架构(CUDA)上实现,以便它们可以在NVIDIA图形处理单元(GPU)上运行。从我们的实验中,我们得出结论,随着矩阵大小的增加,CUDA实现优于顺序实现。此外,BiCGStab方法比Jacobi方法更好地执行密集矩阵,而Jacobi方法更好地执行稀疏矩阵。由于可达性概率问题在概率模型检验中起着关键作用,我们还比较了从概率模型检验器获得的矩阵的实现。我们的实验支持Bosnacki等人的猜想,即Jacobi方法优于Krylov子空间方法,这是BiCGStab方法所属的一类,用于概率模型检验。

英文摘要:

We consider the problem of computing reachability probabilities: given a Markov chain, an initial state of the Markov chain, and a set of goal states of the Markov chain, what is the probability of reaching any of the goal states from the initial state? This problem can be reduced to solving a linear equation Ax = b for x, where A is a matrix and b is a vector. We consider two iterative methods to solve the linear equation: the Jacobi method and the biconjugate gradient stabilized (BiCGStab) method. For both methods, a sequential and a parallel version have been implemented. The parallel versions have been implemented on the compute unified device architecture (CUDA) so that they can be run on a NVIDIA graphics processing unit (GPU). From our experiments we conclude that as the size of the matrix increases, the CUDA implementations outperform the sequential implementations. Furthermore, the BiCGStab method performs better than the Jacobi method for dense matrices, whereas the Jacobi method does better for sparse ones. Since the reachability probabilities problem plays a key role in probabilistic model checking, we also compared the implementations for matrices obtained from a probabilistic model checker. Our experiments support the conjecture by Bosnacki et al. that the Jacobi method is superior to Krylov subspace methods, a class to which the BiCGStab method belongs, for probabilistic model checking.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑