Giter VIP home page Giter VIP logo

Comments (4)

nickmachnik avatar nickmachnik commented on June 9, 2024

Hi,
sidenote: the threads are set with the -p flag. But I suppose you have done that, otherwise you should have gotten a 'unrecognized argument' error.
What -p does is to set the number of worker threads that run the comparisons of matrix pairs. If you set e.g. -p 6 and watch your top you should see that after the 'launching workers' log six new processes spawn, irrespective of "NUMEXPR_MAX_THREADS".
That being said, I am not sure where the "NUMEXPR_MAX_THREADS" warning is coming from, and I get it too, so I'll investigate.

from chess.

cgirardot avatar cgirardot commented on June 9, 2024

indeed -p
I am sending the jobs to the cluster and set -p 8 and the SLURM command accordingly. Since jobs don t get killed, I assumed either this is a weird warning or no multithreading occurs. I'll try running local but this is a minor aspect anyway.

from chess.

sidiropoulos avatar sidiropoulos commented on June 9, 2024

Hi, I am experiencing the same issue as @cgirardot on a PBS cluster. No matter what value I set with -p I will always get the same message.
2020-11-02 10:37:31,485 INFO Note: NumExpr detected 40 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 2020-11-02 10:37:31,485 INFO NumExpr defaulting to 8 threads.

I am also inspecting the run in at interactive node and I notice that there is only one chess process running.

The same message gets printed when I run chess extract. Maybe that could be a hint to the issue?

Thanks,
Nikos

from chess.

nickmachnik avatar nickmachnik commented on June 9, 2024

Hi @sidiropoulos, thank you for reporting this. NumExpr is used in PyTables, which is again used in FAN-C (see https://fan-c.readthedocs.io/en/latest/fanc-executable/fanc_basic.html#numexpr-threadpool-configuration). The message refers to multi-threading in NumExpr only, not in chess in general.
As the message is confusing, we remove it with the 0.3.5 patch.

Chess itself uses multi-threading for the actual matrix-comparisons, as I said above. If you set -p > 1 then you should observe in your system monitor process viewer that new chess processes spawn after the "INFO Launching workers" log message.

from chess.

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.