Tt read fix #89

Merged
rektdie merged 2 commits from tt-read-fix into main 2025-08-22 14:31:24 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 817d589042 - Show all commits

No files matched your search

+1 -1
View File
@@ -217,7 +217,7 @@ void Run(int targetPositions, int threads) {
for (int i = 0; i < threads - 1; ++i) { for (int i = 0; i < threads - 1; ++i) {
pthread_attr_t attr; pthread_attr_t attr;
pthread_attr_init(&attr); pthread_attr_init(&attr);
pthread_attr_setstacksize(&attr, 8 * 1024 * 1024); // 2 MB stack pthread_attr_setstacksize(&attr, 8 * 1024 * 1024); // 8 MB stack
auto* args = new std::tuple<int, std::atomic<int>*, std::atomic<bool>*>(i, &positions, &stopFlag); auto* args = new std::tuple<int, std::atomic<int>*, std::atomic<bool>*>(i, &positions, &stopFlag);
+1 -1
View File
@@ -154,7 +154,7 @@ public:
sw.Restart(); sw.Restart();
killerMoves = {}; killerMoves = {};
ss = {}; ss = {};
positionHistory.reserve(1000); positionHistory.resize(1000);
} }
}; };