Fix small CI failures

1) Only access UCI option if defined
2) disable -Werror for now.
3) disable a few target that don't have _mm_malloc.
4) Add profile-learn target, with small speedup.
5) just test on Linux + gcc (skip macOS, unclear openblas, skip linux+clang, unclear omp/std::filesystem).
This commit is contained in:
Joost VandeVondele
2020-09-07 20:14:21 +02:00
committed by nodchip
parent e638d66bbe
commit 6e8f82ad76
4 changed files with 37 additions and 30 deletions

View File

@@ -40,7 +40,7 @@ BINDIR = $(PREFIX)/bin
### Built-in benchmark for pgo-builds
PGOBENCH = ./$(EXE) bench
PGOGENSFEN = ./$(EXE) gensfen depth 3 loop 100000
PGOGENSFEN = ./$(EXE) gensfen depth 3 loop 1000
### Source and object files
SRCS = benchmark.cpp bitbase.cpp bitboard.cpp endgame.cpp evaluate.cpp main.cpp \
@@ -908,7 +908,7 @@ learn: config-sanity
EXTRALDFLAGS=' $(BLASLDFLAGS) -fopenmp ' \
all
profile-learn: config-sanity objclean profileclean
profile-learn: net config-sanity objclean profileclean
@echo ""
@echo "Step 1/4. Building instrumented executable ..."
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_make) \

View File

@@ -184,11 +184,13 @@ namespace Eval::NNUE {
Initialize();
#if defined(EVAL_NNUE)
if (Options["SkipLoadingEval"])
{
std::cout << "info string SkipLoadingEval set to true, Net not loaded!" << std::endl;
return true;
}
#endif
fileName = evalFile;

View File

@@ -96,7 +96,7 @@ void init(OptionsMap& o) {
#if defined(EVAL_LEARN)
// When learning the evaluation function, you can change the folder to save the evaluation function.
// Evalsave by default. This folder shall be prepared in advance.
// Automatically dig a folder under this folder like "0/", "1/", ... and save the evaluation function file there.
// Automatically create a folder under this folder like "0/", "1/", ... and save the evaluation function file there.
o["EvalSaveDir"] << Option("evalsave");
#endif
}