Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimise NNUE Accumulator updates #5202

Closed

Conversation

cj5716
Copy link
Contributor

@cj5716 cj5716 commented Apr 29, 2024

Passed STC:
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 86176 W: 22284 L: 21905 D: 41987
Ptnml(0-2): 254, 9572, 23051, 9963, 248
https://tests.stockfishchess.org/tests/view/662e3c6a5e9274400985a741

closes #5202

No functional change

Passed STC:
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 86176 W: 22284 L: 21905 D: 41987
Ptnml(0-2): 254, 9572, 23051, 9963, 248
https://tests.stockfishchess.org/tests/view/662e3c6a5e9274400985a741

closes official-stockfish#5202

No functional change
@cj5716 cj5716 force-pushed the update_accumulator_optimise2 branch from cd2d3b6 to 8cc2fc5 Compare April 29, 2024 05:43
@mstembera
Copy link
Contributor

Congrats!

rn5f107s2 pushed a commit to rn5f107s2/Stockfish that referenced this pull request Apr 29, 2024
Passed STC:
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 86176 W: 22284 L: 21905 D: 41987
Ptnml(0-2): 254, 9572, 23051, 9963, 248
https://tests.stockfishchess.org/tests/view/662e3c6a5e9274400985a741

closes official-stockfish#5202

No functional change
@mstembera
Copy link
Contributor

Does the assert([&]() run even in release builds which is not what we want ?

@Disservin
Copy link
Member

Disservin commented Apr 30, 2024

Does the assert([&]() run even in release builds which is not what we want ?

i'm not quite sure I understand what you are asking? any assert is not run in release build and is not included in the binary?
This lambda runs in the assertion because at the theres a function call ()

@mstembera
Copy link
Contributor

I was thinking the lambda assert overrides the normal default assert and maybe does not compile out in release builds like a normal assert does?

@ddobbelaere
Copy link
Contributor

ddobbelaere commented Apr 30, 2024

There is no such thing as a 'lambda assert'. The called lambda function is passed as an argument to assert, which is in fact a macro that does nothing if NDEBUG is defined (which is the case for release builds). See https://en.cppreference.com/w/cpp/error/assert

It's actually a clever idiom, never saw it before, but looks good.

@mstembera
Copy link
Contributor

Ah my apologies I obviously can't read. Ty.

@Disservin Disservin added the 🚀 gainer Gains elo label May 1, 2024
@Disservin Disservin closed this in 6a9b8a0 May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 gainer Gains elo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants