emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] support for accessing CPU/core count (processor-count)


From: Stefan Kangas
Subject: Re: [PATCH] support for accessing CPU/core count (processor-count)
Date: Sun, 10 Oct 2021 14:09:53 +0200

Campbell Barton <ideasman42@gmail.com> writes:

> Hi, this patch adds support for accessing the number of CPU's / cores on
> a system, matching CPython's multiprocessing.cpu_count() [0].
>
> I've only tested this for Linux, this includes code that should work on
> other platforms, although that would need to be double-checked of course.
> For reference I checked CPython / Blender & Stack-overflow [1]
>
> Accessing this information can be useful to automatically detect the
> number of jobs to run.

Could we reuse the num_processors_ignoring_omp function in nproc.c in Gnulib?

>From a cursory look, it seems to support also e.g. HP-UX, IRIX.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]