mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 20:57:10 +00:00
Merge commit '75edbee01e6f8cb53a2555499192ccaddb883577' into cluster
This commit is contained in:
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user