CPU Detection

sage.parallel.ncpus.ncpus()

Detects the number of effective CPUs in the system.

EXAMPLES:

sage: sage.parallel.ncpus.ncpus()  # random output -- depends on machine.
2

Previous topic

Parallel Iterator built using Python’s multiprocessing module

This Page