<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 5, 2014 at 8:14 PM, huaibao zhang <span dir="ltr"><<a href="mailto:paulhuaizhang@gmail.com" target="_blank">paulhuaizhang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span style="white-space:pre-wrap"> </span><br><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<span style="font-size:12px">Hello,</span></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<span style="font-size:12px"><br></span></div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><span style="font-size:12px">I looked up the manual, but still felt </span><span style="font-size:12px"> </span><span style="font-size:12px">quite confused about</span><span style="font-size:12px"> </span><span style="font-size:12px">why have to do assembly. Does it have to do with parallelization? Since all of the processors are loading the data at the same time, they need to a pause before one can use the whole </span><span style="font-size:12px">vector? </span></div>
</div></div></blockquote><div><br></div><div>If one process sets a value owned by another process, it has to tell it.</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 style="word-wrap:break-word"><div><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<span style="font-size:12px">See a piece of code: </span></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<span style="font-size:12px"><br></span></div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><div style="word-wrap:break-word"><span style="font-size:12px"> for (int c=0;c<grid[gid].cellCount;++c) {</span></div>
<div style="word-wrap:break-word"><span style="font-size:12px"> row=grid[gid].myOffset+c;</span></div></div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><div style="word-wrap:break-word">
<span style="font-size:12px"> value=p;</span></div><div style="word-wrap:break-word"><span style="font-size:12px"> VecSetValues(soln_n,1,&row,&value,INSERT_VALUES);</span></div>
<div style="word-wrap:break-word"><span style="font-size:12px"> }</span></div><div style="word-wrap:break-word"><span style="font-size:12px"> VecAssemblyBegin(soln_n); VecAssemblyEnd(soln_n);</span></div>
<div style="word-wrap:break-word"><span style="font-size:12px"><br></span></div><div style="word-wrap:break-word"><span style="font-size:12px"><br></span></div><div style="word-wrap:break-word"><span style="font-size:12px">Thanks,</span></div>
<div style="word-wrap:break-word"><span style="font-size:12px">Paul</span></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>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>