Skip to main content

Using multithreaded cores?

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Ralph,

    I don't fully understand your question. If your OS is configured to use only 8 cores, then there is no way to use the other cores of that machine. If you still request Gurobi to use more threads than available cores, the OS will have to juggle those threads around and in most cases, you will experience a slowdown. That's why the solver prints this warning message.

    You may need to change how Windows treats those cores/threads - as hyperthreads effectively doubling the number of physical cores or as pure physical cores without hyperthreading. This is probably a setting in your virtual machine software.

    Using more threads than cores can be necessary to reproduce a certain behavior that is dependent on this specific number of threads. This is probably the only reasonable application for increasing the threads number beyond the available cores.

    Best regards,
    Matthias

    0
  • RALPH ASHER
    • Gurobi-versary
    • First Comment
    • First Question

    Yes, I realized after reading your comment (and some Googling) that I had not enabled hyperthreading in BIOS.  Once I did, Gurobi now defaults to using 8 physical cores, 16 logical processors, and 16 threads.

    0

Post is closed for comments.