<div dir="ltr"><div><div>You need to be more specific, what kind of machine do you have ? If you have very few cores, it will not help much to launch them all at the same time, but at least you can make the thing automatic using the loop as I told you. Your computer will solve the first problem and then automatically go to the second etc etc. How much time does it take do perform your task on one set of matrices A and B ?<br><br></div>If you are on a cluster with many many cores, then you can probably launch your task in parallel, but I don't know how to do this exactly. But if it's a cluster, you can ask the administrators.<br><br></div><div>Best<br></div><div><br></div>Timothee<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-18 17:40 GMT+09:00 venkatesh g <span dir="ltr"><<a href="mailto:venkateshgk.j@gmail.com" target="_blank">venkateshgk.j@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Timothee,<br><br></div>Yes I have A_0001.bin ... A_1000.bin and B_0001.bin... B1000.bin. Yes is it possible to submit at same time ?<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Venkatesh<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 18, 2015 at 1:28 PM, Timothée Nicolas <span dir="ltr"><<a href="mailto:timothee.nicolas@gmail.com" target="_blank">timothee.nicolas@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"><div><div><div><div><div>Hi,<br><br>Can you be a bit more specific ? You have 1000 different files for A and B ? Like, you have A_0001.bin, A_0002.bin, ... A_1000.bin and B_0001.bin, B_0002.bin, ... B_1000.bin ?<br><br></div>In that case it's a bash problem and not a petsc problem, you just need to make a loop on an integer i, use something like <br><br>printf -v i2 "%04d" ${i}<br><br></div>so that i2 is written as 0001, 0002, ... 1000, and not as 1, 2, ... , 1000, concatenate i2 with 'A_' or 'B_' and put that in your launch string. I expect it should work, you can put variables as petsc arguments.<br><br></div>But what do you mean with multiple cores ? You want to do it in parallel at the same time ? Then I don't know how to do it.<br><br></div>Best<br><br></div>Timothee<br><div><div><div><div><div><br><br></div></div></div></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-18 16:46 GMT+09:00 venkatesh g <span dir="ltr"><<a href="mailto:venkateshgk.j@gmail.com" target="_blank">venkateshgk.j@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi all,<br></div>I am using Petsc and Slepc to solve my eigenvalue problem. <br><br></div>I have 1000 A and B matrices saved as binary files. So I use in my script :<br><b><br>aprun -n 1 -N 1 ./ex7 -f1 A -f2 B -st_type sinvert -eps_target 0.01 </b><br><br></div>This is for one A and one B. So, how to do it for each A and B in multiple cores ? <br><br></div>Pls. let me know.<br><br></div>Thank you<span><font color="#888888"><br></font></span></div><span><font color="#888888">Venkatesh<br><div><div><div><br> <br></div></div></div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>