This module implements a proc to determine the number of CPUs / cores.
Example:
import std/cpuinfo doAssert countProcessors() > 0
proc countProcessors(): int {....gcsafe, extern: "ncpi$1", raises: [], tags: [], forbids: [].}
© 2006–2024 Andreas RumpfLicensed under the MIT License. https://nim-lang.org/docs/cpuinfo.html