<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 26 May 2015, at 16:03, Comer Duncan <<a href="mailto:comer.duncan@gmail.com">comer.duncan@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Ian,<div><br></div><div><span style="font-size:12.8000001907349px">You asked: "By the way, which tutorial or example are you following?"</span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">I forgot to answer this. I am using the one at <a href="https://docs.einsteintoolkit.org/et-docs/Tutorial_for_New_Users">https://docs.einsteintoolkit.org/et-docs/Tutorial_for_New_Users</a>.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Also yesterday I ran the static_tov test using all four cores and the test ran a little faster than it ran without explicit mention of the number of cores per node. Here is the explicity usage:</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">./simfactory/bin/sim submit static_tov --parfile=par/static_tov.par --procs=1 --ppn-used=4 --walltime=16:0:0</span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">DId I use the options appropriately?</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Thanks again for your help.</span></div></div></blockquote><div><br></div><div>No :) The terminology for cores etc is very confusing. --procs indicates the number of threads you want to run in TOTAL, which is usually equal to the number of cores you want to use. So if you want to run on all four cores, you should use --procs 4. You may have to also use --ppn-used, as you have, if your machine definition doesn't match your hardware; I'm not sure how intelligent the setup procedure is. Assuming you have a quad-core single-processor machine, you probably want to have</div><div><br></div><div><div>ppn = 4 # cores per node</div><div>max-num-threads = 4 # maximum number of threads per process</div><div>num-threads = 1 # default number of threads per process</div><div>nodes = 1</div><div><br></div><div>in your machine.ini file. This should allow you to run on either 1, 2, 3 or 4 processes, in each case using only a single thread, using just --procs N without needing to specify ppn-used. If you want to use OpenMP (multiple threads per process), you will still keep --procs as the total number of cores/threads to use, but specify --num-threads as the number of threads per process. So for example, --procs 4 --num-threads 2 would give you 4 cores/threads, divided between 2 processes each with 2 threads. </div><div><br></div><div>If you want to allow "oversubscription", i.e. pretend that you have more cores than you really do, which is needed in some cases if you want to force a larger number of MPI processes, you can set nodes = 10 or something.</div></div><div><br></div><div>This is explained carefully at <a href="http://simfactory.org/info/documentation/userguide/processterminology.html">http://simfactory.org/info/documentation/userguide/processterminology.html</a>.</div><div><br></div></div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>-- </div><div>Ian Hinder</div><div><a href="http://members.aei.mpg.de/ianhin">http://members.aei.mpg.de/ianhin</a></div></div></div></div></div>
</div>
<br></body></html>