<div dir="ltr">It sounds like you are allocating memory each time. You can check using -malloc_dump<div>after a few iterates.</div><div><br></div><div> Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 20, 2015 at 7:35 PM, Orxan Shibliyev <span dir="ltr"><<a href="mailto:orxan.shibli@gmail.com" target="_blank">orxan.shibli@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 dir="ltr">I am solving a non-linear problem. Basically I do the following:<div><br></div><div>... Allocate A, x, b, ksp ...<br><div><br></div><div>for_loop</div><div> ... call myFunction ...</div><div><br></div><div>where,</div><div><br></div><div>myFunction:</div><div> ...</div><div> startTime</div><div> KSPSolve</div><div> stopTime</div></div><div> ....</div><div><br></div><div>I record time for KSPSolve. It takes more each time until it becomes impossible to wait. I put the code on a cluster with (14 x 1) processors. Any idea?</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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>