Since MATMPIAIJ works (I didn&#39;t change anything. Just set the vec and mat types to mpicusp and mpiaijcusp for GPU), I think the problem is likely from MatSetValues_MPIAIJ().<br><br>Which PETSc examples can test this function? I can try to use it to test. Thanks a lot, Jed.<br>
<br>Best,<br>Yujie<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 2:44 PM, Jed Brown <span dir="ltr">&lt;<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote">On Fri, Feb 10, 2012 at 14:35, recrusader <span dir="ltr">&lt;<a href="mailto:recrusader@gmail.com" target="_blank">recrusader@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

MATMPIAIJ works ;(.</blockquote></div><br><div>Can you send a reproducible test case? (Instructions for how to run a Libmesh example that would cause this problem is okay, producing it with a PETSc example would be better.)</div>

</blockquote></div><br>