[petsc-users] Why the code needs much longer time when I use MPI

Ji Zhang gotofd at gmail.com
Thu Sep 29 03:56:20 CDT 2016


Dear all,
I'm using KSP included in PETSc to solve some linear equations. The code
runs well if I do not use mpirun. However, the running duration since
increase linearly with the number of CUPs.

The solve method is gmres and without precondition method. For a same case,
it need about 4.9s with 'mpirun -n 1', which is about 7.9s if I use 'mpirun
-n 2', and 12.5s when I use 'mpirun -n 4'. It looks like that I need double
time when I use double CUPs. Is there any one could give me some
suggestion? Thanks.

Best,
Regards,
Zhang Ji, PhD student
Beijing Computational Science Research Center
Zhongguancun Software Park II, No. 10 Dongbeiwang West Road, Haidian
District, Beijing 100193, China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160929/7b1c5e2b/attachment.html>


More information about the petsc-users mailing list