<p>In <a href="https://github.com/mlpack/mlpack/pull/700#discussion_r70044692">CMakeLists.txt</a>:</p>
<pre style='color:#555'>&gt;  find_package(OpenMP)
&gt;  if (OPENMP_FOUND)
&gt; +  add_definitions(-DHAS_OPENMP)
&gt; +  set(HAS_OPENMP &quot;1&quot;)
</pre>
<p>I am defining it here to use it in <code>lsh_search_impl.hpp</code>, where I check if HAS_OPENMP == 1 or HAS_OPENMP == 0. I'm not sure this is the correct usage for <code>add_definitions()</code> - I just saw it worked and went with it.</p>

<p>If I remove the num_threads() directive from the pragmas, then I guess this whole thing is skippable. num_threads() was added because I was planning to do the whole hybrid parallelization scheme, but now that's out, I can simplify the code a bit.</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/files/c4c8ff950be8a06e06084764f188095c650b7a60#r70044692">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFIOjWygnKcNiO49ASmtqXff538WKks5qThFzgaJpZM4I5KSz">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCwzHoQWvkEuYiY4xUAx0u4agpjsks5qThFzgaJpZM4I5KSz.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/files/c4c8ff950be8a06e06084764f188095c650b7a60#r70044692"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>