Add SystemInfo::numAvailableCores

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.3
    • Affects Version/s: 3.3.1
    • Component/s: Portability
    • None
    • Fully Compatible
    • Platforms 10 (02/19/16), Platforms 11 (03/11/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      SystemInfo::numCores is less useful than might be desired, because many forms of process management can limit access to a subset of total cores. This causes us to scale certain internal subsystems at suboptimal levels by assuming more processing than we actually have available.

      It would useful to have a new value available, perhaps numAvailableCores, which would return a num <= ::numCores.

      Consider the implementation of gnu nproc and investigate if a portable solution exists.

            Assignee:
            Waley Chen (Inactive)
            Reporter:
            Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: