[mlpack-git] [mlpack/mlpack] LSHSearch Parallelization (#700)

Yannis Mentekidis notifications at github.com
Fri Jul 8 05:06:49 EDT 2016


> @@ -822,13 +861,13 @@ void LSHSearch<SortPolicy>::Search(const arma::mat& querySet,
>  
>      // An informative book-keeping for the number of neighbor candidates
>      // returned on average.
> +    // Make atomic to avoid race conditions when multiple threads are running
> +    #pragma omp atomic
>      avgIndicesReturned += refIndices.n_elem;

Right, let me try that.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/700/files/c4c8ff950be8a06e06084764f188095c650b7a60#r70045619
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160708/00a01c38/attachment.html>


More information about the mlpack-git mailing list