Skip to content

Commit

Permalink
Remove the mutex!
Browse files Browse the repository at this point in the history
  • Loading branch information
mooskagh committed Jan 18, 2025
1 parent 16c28bc commit a16a609
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/search/classic/search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,6 @@ void SearchWorker::ProcessPickedTask(int start_idx, int end_idx,
std::back_inserter(legal_moves),
[](const auto& edge) { return edge.GetMove(); });
picked_node.eval->p.resize(legal_moves.size());
Mutex::Lock lock(computation_addinput_mutex_);
picked_node.is_cache_hit = computation_->AddInput(
EvalPosition{
.pos = history.GetPositions(),
Expand Down
1 change: 0 additions & 1 deletion src/search/classic/search.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ class SearchWorker {
Search* const search_;
// List of nodes to process.
std::vector<NodeToProcess> minibatch_;
Mutex computation_addinput_mutex_;
std::unique_ptr<BackendComputation> computation_;
int task_workers_;
int target_minibatch_size_;
Expand Down

0 comments on commit a16a609

Please sign in to comment.