mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
* lib/nproc.c (parse_omp_threads): A new function refactored from num_processors() to support parsing both of the above environment variables. (num_processors): Prefer using omp_get_num_threads() with [_OPENMP] to accurately reflect the current OpenMP nesting level. Also support the OMP_THREAD_LIMIT environment variable to limit the max value determined from OMP_NUM_THREADS. * modules/nproc: Depend on minmax header. Suggested by Oliver Heimlich.
29 lines
275 B
Plaintext
29 lines
275 B
Plaintext
Description:
|
|
Detect the number of processors
|
|
|
|
Files:
|
|
lib/nproc.h
|
|
lib/nproc.c
|
|
m4/nproc.m4
|
|
|
|
Depends-on:
|
|
c-ctype
|
|
extensions
|
|
minmax
|
|
unistd
|
|
|
|
configure.ac:
|
|
gl_NPROC
|
|
|
|
Makefile.am:
|
|
lib_SOURCES += nproc.c
|
|
|
|
Include:
|
|
"nproc.h"
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
Glen Lenker and Paul Eggert
|