[petsc-dev] MatTransposeMatMult

Jed Brown jed at jedbrown.org
Wed Sep 20 20:45:43 CDT 2017


~jedbrown/ceres_solver_iteration_001_A.petsc on mcs.anl.gov.

The issue is that MatTransposeMatMult is implemented using sparse outer
products which is quite inefficient compared to the standard MatMatMult
algorithm.

Barry Smith <bsmith at mcs.anl.gov> writes:

>   Send the runable case so that we can determine the cause of the slow down and find possible cures. It could be that the "optimized" version was optimized for a particular size of problems or matrix structure.
>
>    Barry
>
>> On Sep 20, 2017, at 4:32 PM, Jed Brown <jed at jedbrown.org> wrote:
>> 
>> I have a simple SeqAIJ example where MatTransposeMatMult is 30x slower
>> than MatTranspose followed by MatMatMult.  This is embarrassing when
>> people try to compare performance.  Are there any cases where these
>> custom implementations provide value rather than just confusing people
>> or turning them away from PETSc?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170920/57efc0f8/attachment.sig>


More information about the petsc-dev mailing list