<div class="gmail_quote">On Thu, Jan 5, 2012 at 14:25, Junchao Zhang <span dir="ltr">&lt;<a href="mailto:junchao.zhang@gmail.com">junchao.zhang@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">
<div> I browsed petsc source cdoe and found  a macro PETSC_HAVE_MPI_WIN_CREATE.</div><div>  It seems petsc can use one-sided communication.  I want to test MatMult()&#39;s performance with one-sided.</div><div><div>
  Then, how to enable it?</div></div></blockquote></div><br><div>Just run with -vecscatter_window</div><div><br></div><div>Note that this currently uses MPI_Win_fence() for completion which makes it more synchronous than necessary (it could and should use MPI_Win_post(), MPI_Win_start(), MPI_Win_complete(), MPI_Win_wait()).</div>