mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Rewrite async I/O
Use the starting thread to wait for GUI input and instead use the other threads to search. The consequence is that now think() is alwasy started on a differnt thread than the caller that returns immediately waiting for input. This reformat greatly simplifies the code and is more in line with the common way to implement this feature. As a side effect now we don't need anymore Makefile tricks with sleep() to allow profile builds. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+3
-3
@@ -389,7 +389,7 @@ profile-build:
|
||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_make)
|
||||
@echo ""
|
||||
@echo "Step 2/4. Running benchmark for pgo-build ..."
|
||||
@sleep 10 | $(PGOBENCH) > /dev/null
|
||||
@$(PGOBENCH) > /dev/null
|
||||
@echo ""
|
||||
@echo "Step 3/4. Building final executable ..."
|
||||
@touch *.cpp
|
||||
@@ -409,14 +409,14 @@ double-profile-build:
|
||||
$(MAKE) ARCH=x86-64 COMP=$(COMP) $(profile_make)
|
||||
@echo ""
|
||||
@echo "Step 2/6. Running benchmark for pgo-build (popcnt disabled)..."
|
||||
@sleep 10 | $(PGOBENCH) > /dev/null
|
||||
@$(PGOBENCH) > /dev/null
|
||||
@echo ""
|
||||
@echo "Step 3/6. Building executable for benchmark (popcnt enabled)..."
|
||||
@touch *.cpp *.h
|
||||
$(MAKE) ARCH=x86-64-modern COMP=$(COMP) $(profile_make)
|
||||
@echo ""
|
||||
@echo "Step 4/6. Running benchmark for pgo-build (popcnt enabled)..."
|
||||
@sleep 10 | $(PGOBENCH) > /dev/null
|
||||
@$(PGOBENCH) > /dev/null
|
||||
@echo ""
|
||||
@echo "Step 5/6. Building final executable ..."
|
||||
@touch *.cpp *.h
|
||||
|
||||
Reference in New Issue
Block a user