<html>#1075: Test cases with specific number of processes
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Erik Schnetter</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>enhancement</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Cactus</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>Not quite. Tests will always run with the number of processes they specify (if they specify any), ie if NPROCS is specified in test.ccl for either the thorn or the test parfile then that many MPI ranks will be used to run the test. However if the testsuite is run with say NPROCS=6 available then the tests that specify NPROCS=4 will be run, but run with 4 MPI ranks. Right now those tests would not be run at all.</p>
<p>The number of NPROCS that is used is set in lines 1600ff <a data-is-external-link="true" href="https://bitbucket.org/cactuscode/cactus/pull-requests/73/rhaas-lowproctests/diff#Llib/sbin/RunTestUtils.plT1600" rel="nofollow">https://bitbucket.org/cactuscode/cactus/pull-requests/73/rhaas-lowproctests/diff#Llib/sbin/RunTestUtils.plT1600</a> :</p>
<div class="codehilite language-perl"><pre><span></span><span class="k">my</span> <span class="nv">$NPROCS</span><span class="p">;</span>
<span class="k">if</span><span class="p">(</span><span class="nv">$rundata</span><span class="o">-&gt;</span><span class="p">{</span><span class="s">&quot;$thorn NPROCS&quot;</span><span class="p">})</span> <span class="p">{</span>
  <span class="nv">$NPROCS</span> <span class="o">=</span> <span class="nv">$rundata</span><span class="o">-&gt;</span><span class="p">{</span><span class="s">&quot;$thorn NPROCS&quot;</span><span class="p">};</span>
<span class="p">}</span> <span class="k">elsif</span><span class="p">(</span><span class="nv">$rundata</span><span class="o">-&gt;</span><span class="p">{</span><span class="s">&quot;$thorn $test NPROCS&quot;</span><span class="p">})</span> <span class="p">{</span>
  <span class="nv">$NPROCS</span> <span class="o">=</span> <span class="nv">$rundata</span><span class="o">-&gt;</span><span class="p">{</span><span class="s">&quot;$thorn $test NPROCS&quot;</span><span class="p">};</span>
<span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
  <span class="nv">$NPROCS</span> <span class="o">=</span> <span class="nv">$config_data</span><span class="o">-&gt;</span><
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/1075/test-cases-with-specific-number-of'>https://bitbucket.org/einsteintoolkit/tickets/issues/1075/test-cases-with-specific-number-of</a></p>
</html>