GithubHelp home page GithubHelp logo

Comments (8)

UniQP avatar UniQP commented on June 27, 2024
  1. Can you share the compile command as well (so we know the used compiler flags)?
  2. There seems to be some code missing in your proposed changes. Can you surround the code by single (or triple) backticks?
  3. Does adding a #include <cstdlib> in nnue/evaluate_nnue.cpp fixes the error?
  4. 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.

snicolet avatar snicolet commented on June 27, 2024

@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.

atalkingegg avatar atalkingegg commented on June 27, 2024

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.

atalkingegg avatar atalkingegg commented on June 27, 2024

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.

atalkingegg avatar atalkingegg commented on June 27, 2024

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.

UniQP avatar UniQP commented on June 27, 2024

I would still be interested in the compiler command for nnue/evaluate_nnue.cpp as I could not reproduce the problem.

from stockfish.

snicolet avatar snicolet commented on June 27, 2024

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.

snicolet avatar snicolet commented on June 27, 2024

@atalkingegg Can you confirm the 3c0e86a fixed the issue for your compilation problem? :-)

from stockfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.