<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Sep 24, 2018 at 4:41 PM Xiangdong <<a href="mailto:epscodes@gmail.com">epscodes@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>I have a quick question on MatLoad. When I use MatLoad to read a binary matrix into AIJ format, how can I specify the distributions of rows? In particular, I want the rows distributed on each processor to be even.</div></div></blockquote><div><br></div><div>The idea is that you pass a new Mat in that you have called MatSetSizes() on.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>More specific, Let's say I have a binary matrix A with 50 rows. I want to read this binary file on np=2. By default, each processor will have 25 rows. If I want the rows on each processor to be even (eg., 26 row on rank 0, and 24 rows on rank 1), how can I achieve this? For this specific matrix, I can do it by specifying m in MatSetSizes. However, for a general matrix A, I do not know the number of rows before calling MatLoad, how can I specify the distribution of the matrix? </div><div><br></div><div>Thank you.</div><div><br></div><div>Best,</div><div>Xiangdong</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>