mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Experimental support for PGO builds of NNUE
Only 'nnue' target and only gcc/mingw. (does not clean profile data generated by other compilers) To use: make profile-nnue ARCH=arch (see 'make help' for list of supported archs)
This commit is contained in:
parent
e29499ee4b
commit
961047ed6e
1 changed files with 6 additions and 2 deletions
|
@ -211,7 +211,7 @@ endif
|
||||||
### ==========================================================================
|
### ==========================================================================
|
||||||
|
|
||||||
### 3.1 Selecting compiler (default = gcc)
|
### 3.1 Selecting compiler (default = gcc)
|
||||||
CXXFLAGS += -Wall -Wcast-qual -fno-exceptions -std=c++17 $(EXTRACXXFLAGS)
|
CXXFLAGS += -Wall -Wcast-qual -fno-exceptions -std=c++17 $(EXTRACXXFLAGS) $(NNUECXXFLAGS)
|
||||||
DEPENDFLAGS += -std=c++17
|
DEPENDFLAGS += -std=c++17
|
||||||
LDFLAGS += $(EXTRALDFLAGS)
|
LDFLAGS += $(EXTRALDFLAGS)
|
||||||
|
|
||||||
|
@ -569,7 +569,7 @@ objclean:
|
||||||
# clean auxiliary profiling files
|
# clean auxiliary profiling files
|
||||||
profileclean:
|
profileclean:
|
||||||
@rm -rf profdir
|
@rm -rf profdir
|
||||||
@rm -f bench.txt *.gcda *.gcno
|
@rm -f bench.txt *.gcda *.gcno ./syzygy/*.gcda ./learn/*.gcda ./extra/*.gcda ./eval/*.gcda ./eval/nnue/*.gcda ./eval/nnue/features/*.gcda
|
||||||
@rm -f stockfish.profdata *.profraw
|
@rm -f stockfish.profdata *.profraw
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -666,6 +666,10 @@ icc-profile-use:
|
||||||
nnue: config-sanity
|
nnue: config-sanity
|
||||||
$(MAKE) CXXFLAGS='$(CXXFLAGS) -DEVAL_NNUE -DENABLE_TEST_CMD -fopenmp' LDFLAGS='$(LDFLAGS) -fopenmp' build
|
$(MAKE) CXXFLAGS='$(CXXFLAGS) -DEVAL_NNUE -DENABLE_TEST_CMD -fopenmp' LDFLAGS='$(LDFLAGS) -fopenmp' build
|
||||||
|
|
||||||
|
profile-nnue: export NNUECXXFLAGS = -DEVAL_NNUE -DENABLE_TEST_CMD
|
||||||
|
profile-nnue: config-sanity
|
||||||
|
$(MAKE) profile-build
|
||||||
|
|
||||||
nnue-gen-sfen-from-original-eval: config-sanity
|
nnue-gen-sfen-from-original-eval: config-sanity
|
||||||
$(MAKE) CXXFLAGS='$(CXXFLAGS) -DEVAL_LEARN -DUSE_EVAL_HASH -DENABLE_TEST_CMD -fopenmp' LDFLAGS='$(LDFLAGS) -fopenmp' build
|
$(MAKE) CXXFLAGS='$(CXXFLAGS) -DEVAL_LEARN -DUSE_EVAL_HASH -DENABLE_TEST_CMD -fopenmp' LDFLAGS='$(LDFLAGS) -fopenmp' build
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue