<div dir="ltr"><div>Let me phrase this question differently.</div><div> </div><div>I want my mpi executable to only use 10 out of the 256 cores on this smp machine.</div><div> </div><div>Is it possible to configure mpi to do this? If so, what would one do this with mpi.</div>
<div> </div><div>bob</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 4:46 PM, Wesley Bland <span dir="ltr"><<a href="mailto:wbland@mcs.anl.gov" target="_blank">wbland@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Threads in MPI are not ranks. When you say you want to launch with -n 100, you will always get 100 processes, not threads. If you want 10 threads on 10 cores, you will need to launch with -n 10, then add your threads according to your threading library.<br>

<br>
Note that threads in MPI do not get their own rank currently. They all share the same rank as the process in which they reside, so if you need to be able to handle things with different ranks, you'll need to use actual processes.<br>

<br>
Wesley<br>
<div><div class="h5"><br>
On Jul 10, 2013, at 9:41 AM, Bob Ilgner <<a href="mailto:bobilgner@gmail.com">bobilgner@gmail.com</a>> wrote:<br>
<br>
> Dear all,<br>
><br>
> I am working on a shared memory processor with 256 cores. I am working from the command line directly.<br>
><br>
> Can I restict the number of cores that I deploy.The command<br>
><br>
> mpirun -n 100 myprog<br>
><br>
><br>
> will automatically start on 100 cores. I wish to use only 10 cores and have 10 threads on each core. Can I do this with mpich ?  Rememebre that this an smp abd I can not identify each core individually(as in a cluster)<br>

><br>
> Regards, bob<br>
</div></div>> _______________________________________________<br>
> discuss mailing list     <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
_______________________________________________<br>
discuss mailing list     <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote></div><br></div>