<p>That's weird, it should work...<br>
Have you tried <code>export OMP_NUM_THREADS=4</code> (or however many cores you have). That shouldn't be nescessary though, since I use <code>omp_get_max_threads()</code> which should by default return the number of cores on your machine.</p>

<p>If that also doesn't work, try running cmake with <code>-DHAS_OMP=ON</code>, maybe my cmake code is wrong.</p>

<p>Here's how it should look on htop:<br>
<a href="https://camo.githubusercontent.com/be2916238289e2ad57d138ef6f80cf6b5409ca1c/687474703a2f2f692e696d6775722e636f6d2f6d76554a6e4b4f2e706e673f31" target="_blank"><img src="https://camo.githubusercontent.com/be2916238289e2ad57d138ef6f80cf6b5409ca1c/687474703a2f2f692e696d6775722e636f6d2f6d76554a6e4b4f2e706e673f31" alt="4 core utilization" data-canonical-src="http://i.imgur.com/mvUJnKO.png?1" style="max-width:100%;"></a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<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/700#issuecomment-229990040">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFDTj8wiHk9ZprXHx7WpL8q29CTzUks5qRT_kgaJpZM4I5KSz">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIpvBxODWAkzFDU1tbneDM7KX3Ceks5qRT_kgaJpZM4I5KSz.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/700#issuecomment-229990040"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>