Merge commit '75edbee01e6f8cb53a2555499192ccaddb883577' into cluster

This commit is contained in:
Steinar H. Gunderson
2025-12-25 20:13:34 +01:00
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -136,6 +136,7 @@ Ken Takusagawa
Kenneth Lee (kennethlee33)
kevlu8
Kian E (KJE-98)
Kieren Pearson (KierenP)
kinderchocolate
Kiran Panditrao (Krgp)
Kirill Zaripov (kokodio)
+3 -2
View File
@@ -28,6 +28,7 @@
#include "cluster.h"
#include "misc.h"
#include "memory.h"
#include "movegen.h"
#include "search.h"
#include "syzygy/tbprobe.h"
@@ -55,8 +56,8 @@ Thread::Thread(Search::SharedState& sharedState,
// the Worker allocation. Ideally we would also allocate the SearchManager
// here, but that's minor.
this->numaAccessToken = binder();
this->worker =
std::make_unique<Search::Worker>(sharedState, std::move(sm), n, this->numaAccessToken);
this->worker = make_unique_large_page<Search::Worker>(sharedState, std::move(sm), n,
this->numaAccessToken);
});
wait_for_search_finished();
+3 -2
View File
@@ -28,6 +28,7 @@
#include <mutex>
#include <vector>
#include "memory.h"
#include "movepick.h"
#include "numa.h"
#include "position.h"
@@ -94,8 +95,8 @@ class Thread {
void wait_for_search_finished();
size_t id() const { return idx; }
std::unique_ptr<Search::Worker> worker;
std::function<void()> jobFunc;
LargePagePtr<Search::Worker> worker;
std::function<void()> jobFunc;
private:
std::mutex mutex;