[petsc-users] matsetvalueslocal for aijcusparse matrix
Matthew Knepley
knepley at gmail.com
Mon Oct 21 18:42:34 CDT 2019
On Mon, Oct 21, 2019 at 7:27 PM Xiangdong via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Hello everyone,
>
> When I use matsetvalueslocal to form the matrix in aijcusparse format, I
> found that it takes forever to finish the loops of matsetvalueslocal. I am
> setting one entry a time, and there are about about 28 Million nonzeros.
> (It is fast if the matrix is aij, instead of aijcusparse).
>
> However, if I have the matrix ready in binary format and use matload to
> get it into aijcusparse format, it is fast.
>
> Is it the issue of matsetvalueslocal or my wrong way of using
> matsetvalueslocal? any suggestions to speed up the process?
>
Is the matrix preallocated properly? You should be able to check with -info.
Thanks,
Matt
> Thank you.
>
> Xiangdong
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191021/a417ec61/attachment.html>
More information about the petsc-users
mailing list