Comments (8)
- Can you share the compile command as well (so we know the used compiler flags)?
- There seems to be some code missing in your proposed changes. Can you surround the code by single (or triple) backticks?
- Does adding a
#include <cstdlib>
innnue/evaluate_nnue.cpp
fixes the error? - Independent of the error: Are you using x86-based or arm-based hardware? In latter case, you should consider using a different architecture (
ARCH=apple-silicon
).
from stockfish.
@atalkingegg
Thanks for the report!
Does it remove the compile error if you change line 254 of evaluate_nnue.cpp to the following?
const double pawns = std::abs(double(0.01) * UCI::to_cp(v));
from stockfish.
For some reason the original post removed the important part of the patch, include cmath with the appropriate cpp punctuation around it.
I pulled that include out, and replaced 254 with snicolet's line, and no it still gets that original error.
I then added the include cstdlib line that UniQP suggested, and it still has the same error.
To UniQP's question, "make build ARCH=x86-64-sse41-popcnt", and yes it's an intel based mac.
It also works with snicolet's version const double pawns line and the original version include cmath (not including cstdlib)
Hopefully this all gets through the filter and is understandable.
Thanks!
from stockfish.
I just tried the original version of line 254, and only the new include cmath, and it also works. That would be the minimal fix for this issue.
from stockfish.
I just pulled the latest git origin/master version, the build problem still exists, but the include cmath fix still works. Please add. Thanks!
from stockfish.
I would still be interested in the compiler command for nnue/evaluate_nnue.cpp
as I could not reproduce the problem.
from stockfish.
I just tried the original version of line 254, and only the new include cmath, and it also works. That would be the minimal fix for this issue.
If you have a github account, could you open a pull request with this minimal fix? thanks :-)
from stockfish.
@atalkingegg Can you confirm the 3c0e86a fixed the issue for your compilation problem? :-)
from stockfish.
Related Issues (20)
- How does ELO relate to Skill Level? HOT 1
- Erratic eval @CCC HOT 4
- I find out the nps is really low.
- Stockfish 16 (POPCNT) for Linux crashes on positions with too many pieces HOT 2
- 2. Ke2 annotated as blunder HOT 1
- No Stockfish builds on the releases page HOT 1
- Randomicity problem HOT 4
- Wrong evaluation with multiple bishops of the same color HOT 1
- Position crashed Stockfish 16 HOT 6
- Segmentation fault HOT 4
- Default Posted versions on stockfishchess.org HOT 1
- Stockfish for Apple Silicon HOT 3
- Nnue Embedding Off HOT 5
- Stockfish.exe crash in command prompt. HOT 4
- Slowdown? HOT 16
- How to disable NNUE in SF16? HOT 4
- dotprod is not recognized on Raspberry Pi 5
- gcc gives warning when compiling on Raspberry Pi 5 HOT 5
- Bug during compiling on GitHub HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stockfish.