Tt test #87
No files matched your search
+1
-1
@@ -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, 2 * 1024 * 1024); // 2 MB stack
|
pthread_attr_setstacksize(&attr, 8 * 1024 * 1024); // 2 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
-3
@@ -1,9 +1,7 @@
|
|||||||
#include "uci.h"
|
#include "uci.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <algorithm>
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <thread>
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
@@ -82,7 +80,7 @@ static void* ThreadFunc(void* arg) {
|
|||||||
static void StartSearchThread(Board& board, SearchParams params, SEARCH::SearchContext* ctx) {
|
static void StartSearchThread(Board& board, SearchParams params, SEARCH::SearchContext* ctx) {
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
pthread_attr_init(&attr);
|
pthread_attr_init(&attr);
|
||||||
pthread_attr_setstacksize(&attr, 2 * 1024 * 1024); // 2 MB stack
|
pthread_attr_setstacksize(&attr, 8 * 1024 * 1024); // 2 MB stack
|
||||||
|
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user