<blockquote>
<p>I wasn't sure of where mlpack defines number of threads</p>
</blockquote>
<p>It doesn't, set OMP_NUM_THREADS as an environment variable before you run the program and then OpenMP will use that many threads:</p>
<pre><code>$ OMP_NUM_THREADS=4 bin/mlpack_test
</code></pre>
<p>(or whatever)</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/666#issuecomment-224680031">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFF6Qe2ykdY8e_1QT8ybiBeHUn99jks5qJwZYgaJpZM4IsxhK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFA7ceI6BdTqu0OrRJ_elaYF7dkd5ks5qJwZYgaJpZM4IsxhK.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/666#issuecomment-224680031"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>