<p>In <a href="https://github.com/mlpack/mlpack/pull/700#discussion_r69737532">src/mlpack/tests/lsh_test.cpp</a>:</p>
<pre style='color:#555'>&gt; +  lshTest.Search(qdata, k, parallelNeighbors, distances);
&gt; +
&gt; +  // Now perform same search but with 1 thread
&gt; +  lshTest.MaxThreads(1);
&gt; +  lshTest.Search(qdata, k, sequentialNeighbors, distances);
&gt; +
&gt; +  // Require both have same results
&gt; +  double recall = LSHSearch&lt;&gt;::ComputeRecall(sequentialNeighbors, parallelNeighbors);
&gt; +  BOOST_REQUIRE_EQUAL(recall, 1);
&gt; +}
&gt; +
&gt; +/**
&gt; + * Test: This test verifies that parallel query processing returns correct
&gt; + * results for the monochromatic search.
&gt; + */
&gt; +BOOST_AUTO_TEST_CASE(ParallelMonochromatic)
</pre>
<p>We should probably put an <code>#ifdef HAS_OPENMP</code> or something like this around this test; there's no need to run this if the user doesn't have OpenMP enabled.</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/3af80c339a7a846bb3bdf305131c87eaa939fc01#r69737532">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFIIXtPCbCJJCGjNaU1SaEO7Yos4Kks5qS7fXgaJpZM4I5KSz">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFGMgFGl0Sl7zfPS0Yxi4xcDCsmOjks5qS7fXgaJpZM4I5KSz.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/3af80c339a7a846bb3bdf305131c87eaa939fc01#r69737532"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>