Joost VandeVondele
dbbb3fa477
Add info string showing which evaluation is in use
2020-08-02 17:22:19 +02:00
Joost VandeVondele
18686e29c7
Revisit NNUE initialization
...
this revisits the initialization of NNUE, basically only changing
the state on the UCI options 'Use NNUE' and 'EvalFile' calling init_NNUE(),
which sets the Eval::useNNUE variable, and loads the network if needed
(i.e. useNNUE is true and the same network is not yet loaded)
init_NNUE is silent (i.e. no info strings), so that it can be called at startup
without confusing certain GUIs.
An error message on wrong setting when asking for (i.e. the net failed to load),
is delayed to the point where everything must be consistent (start of search or eval).
The engine will stop if the settings are wrong at that point.
Also works if the default value of Use NNUE would become true.
2020-08-02 17:22:19 +02:00
Joost VandeVondele
e45d4f1b65
Small whitespace changes
2020-08-02 16:30:00 +02:00
Joost VandeVondele
f4ecc899d8
Minimal whitespace changes
2020-08-01 22:43:14 +02:00
Dariusz Orzechowski
122c78b521
[NNUE] More cleanup in nnue folder
...
No functional change.
2020-08-01 22:24:26 +02:00
Joost VandeVondele
aa339506db
Small target adjustments
2020-08-01 19:19:10 +02:00
Dariusz Orzechowski
292c9efb1d
[NNUE] Remove not used network architecture
...
No functional change.
2020-08-01 17:31:20 +02:00
Joost VandeVondele
9f2f46c212
[NNUE] adjust Makefile targets
...
clearly differentiate between sse3 and ssse3.
assume popcnt from sse4.
2020-08-01 17:30:29 +02:00
Joost VandeVondele
61ab908db3
Some coding style changes, white space
2020-08-01 09:25:00 +02:00
Joost VandeVondele
6cd70676b4
Update README.md
...
Mostly restores the previous README.md with some info and new UCI options, retaining only the info needed for the player.
The valuable training documentation is best preserved elsewhere.
Comments / fixes welcome.
2020-08-01 08:27:59 +02:00
Joost VandeVondele
56c9b608c9
Remove unused variable
2020-08-01 08:18:35 +02:00
Joost VandeVondele
dbab8b03cf
Recreate Position object for eval
...
takes the current option settings into account.
Fixes #2859
Fixes #2579
2020-07-31 19:16:38 +02:00
Joost VandeVondele
8e28c99f79
Use a global instead of a variable in pos
2020-07-31 15:58:33 +02:00
Joost VandeVondele
e42258db5a
Merge branch 'nnue-notemplate2' of https://github.com/dorzechowski/Stockfish into dorzechowski-nnue-notemplate2
2020-07-31 12:19:26 +02:00
Dariusz Orzechowski
69fa1111e6
[NNUE] StateInfo handling speed improvement
...
Don't copy NNUE parts of StateInfo when not needed in do_null_move().
Measurement vs master at STC shows only ~3 Elo regression when NNUE
is not used, was ~5 Elo before.
https://tests.stockfishchess.org/tests/view/5f23a9052f7e63962b99f51b
ELO: -3.02 +-1.7 (95%) LOS: 0.0%
Total: 60000 W: 11145 L: 11666 D: 37189
Ptnml(0-2): 1018, 6945, 14494, 6626, 917
No functional change.
2020-07-31 11:58:13 +02:00
Dariusz Orzechowski
ffae13edff
Remove some code unused in the current network architecture
...
No functional change.
2020-07-30 05:05:27 +02:00
mstembera
21d43e9500
Remove some unnecessary declarations and headers.
...
bench: 4578298
2020-07-28 20:08:10 -07:00
NguyenPham
5c616bc46b
Change data file extension of nnue networks
...
move from .bin (used for polyglot books etc) to .nnue
2020-07-28 14:02:35 +02:00
Joost VandeVondele
2f459fb161
Add authors to the AUTHORS file
...
add missing contributors based on git commit history
2020-07-28 10:27:07 +02:00
Joost VandeVondele
c8f7fa6a02
[NNUE] update compiler info with flags
...
as several new flags are added document compilation specifics under the compiler command.
No functional change.
2020-07-28 09:28:10 +02:00
Dariusz Orzechowski
7bb14c2489
Clamp NNUE evaluation score
...
No functional change.
2020-07-28 04:30:47 +02:00
Joost VandeVondele
6349062d42
[NNUE] remove evalnn command
...
instead eval uses the evaluation according to the state of Use NNUE
No functional change.
2020-07-27 20:14:25 +02:00
erbsenzaehler
7182c55e5c
Update appveyor to use MSVC 2019
2020-07-27 13:09:48 +02:00
Joost VandeVondele
b536b0ac67
[NNUE] init networks also for cmdline use
...
`./stockfish go depth 10`
now works if `Use NNUE` defaults to true.
No functional change
2020-07-27 09:43:19 +02:00
mstembera
60497a85d6
Fix a crash on Use NNUE default true
...
This was because the UCI::use_nnue variable was never updated to true.
closes https://github.com/official-stockfish/Stockfish/pull/2843
bench: 4578298
NNUE: 3377227
2020-07-27 07:17:41 +02:00
Joost VandeVondele
a8bdf69c71
Use _mm_malloc on _WIN32
2020-07-26 22:22:36 +02:00
Joost VandeVondele
a6c614da03
Include header if _MSC_VER
2020-07-26 20:44:47 +02:00
Joost VandeVondele
98ffe0cd97
[NNUE] Wrap aligned_alloc
...
For some systems std::aligned_alloc is not available even if c++17 is specified.
Wrap the function and use specific solutions.
Update macosx-version-min to the required minimum.
No functional change.
2020-07-26 20:32:00 +02:00
Joost VandeVondele
2b0ba70436
[NNUE] update travis CI to use new toolchain
...
No functional change.
2020-07-26 18:03:54 +02:00
Joost VandeVondele
27b87ddf5d
[NNUE] use_nue=false for getting the material key
...
No functional change.
2020-07-26 14:57:38 +02:00
Joost VandeVondele
319b8e8e7b
Fix unused variable warning
...
for certain targets. Only define variable when needed.
No functional change.
2020-07-26 14:57:38 +02:00
Joost VandeVondele
44461911f7
[NNUE] Add C++17 to appveyor
...
update CMakeList.txt to add required C++ standard version.
Fix signature.
the code is up-to-date with master d89730d5c8
adjust signature
Bench: 4578298
2020-07-26 14:57:29 +02:00
Dariusz Orzechowski
a285850bf6
Fix valgrind issue
...
No functional change.
2020-07-26 08:52:22 +02:00
Dariusz Orzechowski
cae61bbb65
Fix memset/memcpy warnings
...
No functional change.
2020-07-26 08:52:22 +02:00
Joost VandeVondele
ab09c74783
Revert "[NNUE] Update travis clang on linux."
...
This reverts commit e3367756b5
.
2020-07-25 19:48:20 +02:00
Joost VandeVondele
e3367756b5
[NNUE] Update travis clang on linux.
...
move from 6.0 to 7.0 (minimum version for std::aligned_alloc)
2020-07-25 19:13:59 +02:00
Joost VandeVondele
49d2cd8b13
[NNUE] update x86-64-modern target
...
slightly increase requirements on modern from sse3 to ssse3.
2020-07-25 17:23:07 +02:00
Dariusz Orzechowski
beb956f823
NNUE: Fix debug build
...
No functional change
2020-07-25 17:22:25 +02:00
Joost VandeVondele
faf08671ff
[NNUE] default net
...
change default net to nn-c157e0a5755b.bin as available in https://github.com/official-stockfish/networks
2020-07-25 12:45:19 +02:00
Dariusz Orzechowski
458a920788
Fix makefile option x86-64-modern
2020-07-20 13:53:21 +02:00
Dariusz Orzechowski
871e6b8c83
Merge latest changes from nodchip repo
2020-07-20 13:19:25 +02:00
Dariusz Orzechowski
76d8f6128a
Fix popcnt option in makefile
2020-07-20 11:39:52 +02:00
nodchip
c0e1235fef
Added a description to Makefile.
2020-07-20 17:36:09 +09:00
No name
74049a450c
Add NNUE targets to the output of 'make help'
2020-07-20 17:29:20 +09:00
nodchip
fbdb373b64
Changed to set the binary directory to the current working directory.
2020-07-20 17:17:50 +09:00
Dariusz Orzechowski
c0bbce092b
Restore ARCH=x86-64-modern in the makefile
2020-07-20 09:59:40 +02:00
Dariusz Orzechowski
cf8a50e654
Don't use NNUE by default - changed for an attempt on fishtest
2020-07-20 08:39:21 +02:00
Dariusz Orzechowski
675672cfc1
Use std::aligned_alloc
2020-07-20 06:20:31 +02:00
Dariusz Orzechowski
4cceeb7380
Remove code unneeded for playing, refactor, update to latest master dev
2020-07-20 05:45:24 +02:00
mstembera
77018c77cc
Fix profile builds for AVX512.
2020-07-19 21:25:50 +09:00