<html>#1326: running loopcontrol on strange number of threads fails
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</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>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>

<p>Comment (by Erik Schnetter):</p>
<p>Setting these variables is fine. Setting the other variables (<code>CACTUS_...</code>) only allows Cactus to check whether things actually worked out as intended; they are only used for checking.</p>
<p>If you set OMP_NUM_THREADS=4 and expect there to be one thread per core, and Cactus later thinks it’s running on 12 cores, then something went wrong. Did you look at the output of <code>omp_max_threads()</code>? Did you environment variable actually make it to Cactus? Did you actually start one job with 12 processes, or accidentally 12 individual processes that know nothing about each other? Did the queuing system get confused and set up a cgroup with a different number of cores? Lots of things can go wrong.</p>
<p>The error message might come from LoopControl trying to determine how to split 4 threads of 12 cores. The resulting 1/3 threads per core might have caused the problem (although it shouldn’t).</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/1326/running-loopcontrol-on-strange-number-of'>https://bitbucket.org/einsteintoolkit/tickets/issues/1326/running-loopcontrol-on-strange-number-of</a></p>
</html>