<div dir="ltr">Hi Ajay,<div><br></div><div>I'm not aware of a way to control the number of threads on a per-process basis in mpich.  You can (and should) set the phread worker processes spawned by each Core process in the .threads file.  The first entry in the .threads file corresponds to the first Core process, the second to the second Core process, and so on.  Those are the only significant consumers of CPU, and you would normally set that number to 1 fewer than the number of CPU cores you have available (so that last core is available to do the sending and receiving etc).  Actually there are two other threads running on the Core process (one doing only communication, one doing the small amount of other non-communication housekeeping that is needed) but they can happily co-exist on a single CPU core.</div><div><br></div><div>For the FxManager and Datastream processes, there's no way to limit the number of CPU cores they use, but they are not very compute intensive except in special corner cases anyway.</div><div><br></div><div>Cheers,</div><div>Adam </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 June 2018 at 14:37, Gill, Ajaypal <span dir="ltr"><<a href="mailto:ajaypal.gill@cfa.harvard.edu" target="_blank">ajaypal.gill@cfa.harvard.edu</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"><p>Hi,</p>
<p>I understand that when using openmpi, it's possible for instance to set the 
.machines file as follows to select the number of cores to use per node:</p>
<p>node1 slots=10 #fx manager<br>
</p>
<p>node2 slots=10 #datastream1<br>
</p>
<p>node3 slots=10 #datastream2</p>
<p>node4 slots=10 #datastream3</p>
<p>node5 slots=20 #core<br>
</p>
<p>However, I see that this format doesn't work when using mpich. Is there any similar way to select the number of cores per node using mpich? </p>
<p>Best regards,</p>
<p>Ajay Gill (summer student)<br></p> </div>
<br>______________________________<wbr>_________________<br>
Difx-users mailing list<br>
<a href="mailto:Difx-users@listmgr.nrao.edu">Difx-users@listmgr.nrao.edu</a><br>
<a href="https://listmgr.nrao.edu/mailman/listinfo/difx-users" rel="noreferrer" target="_blank">https://listmgr.nrao.edu/<wbr>mailman/listinfo/difx-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:12.8000001907349px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px">!=============================================================!<br>Dr. Adam Deller         </div><div dir="ltr" style="font-size:12.8px">ARC Future Fellow, Senior Lecturer</div><div style="font-size:12.8px">Centre for Astrophysics & Supercomputing </div><div dir="ltr" style="font-size:12.8px">Swinburne University of Technology    <br>John St, Hawthorn VIC 3122 Australia</div><div style="font-size:12.8px">phone: +61 3 9214 5307</div><div style="font-size:12.8px">fax: +61 3 9214 8797</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">office days (usually): Mon-Thu<br>!=============================================================!</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>