Skip to content

Commit

Permalink
Add threading to search
Browse files Browse the repository at this point in the history
  • Loading branch information
dillondaudert committed Jan 24, 2019
1 parent 0a9bd2d commit 45d93d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nn_descent.jl
Expand Up @@ -125,7 +125,7 @@ function search(graph::DescentGraph,
max_candidates = trunc(Int, n_neighbors*queue_size)
Dtype = result_type(graph.metric, queries[1], queries[1])
candidates = [BinaryMaxHeap{NNTuple{Int, Dtype}}() for _ in 1:length(queries)]
for i in eachindex(queries)
Threads.@threads for i in eachindex(queries)
# init
seen = fill(false, length(graph.data))
j = rand(1:length(graph.data))
Expand Down

0 comments on commit 45d93d7

Please sign in to comment.