<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Thank you. I'll try it.<div><br></div><div>Zeng<br><div><br>ÔÚ 2012-03-13 22:36:46£¬"Jed&nbsp;Brown"&nbsp;&lt;jedbrown@mcs.anl.gov&gt; Ð´µÀ£º<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div class="gmail_quote">2012/3/13 Xiangze Zeng <span dir="ltr">&lt;<a href="mailto:zengshixiangze@163.com">zengshixiangze@163.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I do set preallocation after setting the matrix type.</div></blockquote><div><br></div><div>Run with -info to make sure it is used (i.e. that the matrix type isn't changed later). Note that PCSOR does not run on the GPU, so it will do lots of copying (run with -log_summary to see). You should start by running PCJACOBI on the GPU.</div>
<div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>&nbsp;<br>Zeng</div><div><br>ÔÚ 2012-03-13 22:14:12£¬"Jed&nbsp;Brown"&nbsp;&lt;<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>&gt; Ð´µÀ£º<div class="im">
<br> <blockquote style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><div class="gmail_quote">2012/3/13 Xiangze Zeng <span dir="ltr">&lt;<a href="mailto:zengshixiangze@163.com" target="_blank">zengshixiangze@163.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
At the beginning and end of &nbsp;the codes for setting the matrices values, I add "printf", and compute the time of this period. It is much longer than that when I don't use the GPU. I just guess the time is used for copping data.&nbsp;My PCTYPE is sor. And 2000 iterations. &nbsp;Do you have any suggestion about this?</blockquote>
</div></blockquote></div></div></blockquote></div><br>
</blockquote></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>