]> git.ipfire.org Git - thirdparty/coreutils.git/commit
nproc: support OMP_THREAD_LIMIT to set a max value
authorPádraig Brady <P@draigBrady.com>
Sun, 26 Feb 2017 16:05:25 +0000 (08:05 -0800)
committerPádraig Brady <P@draigBrady.com>
Sun, 26 Feb 2017 17:31:50 +0000 (09:31 -0800)
commit9404382f6b98606f98b5cd736f5bf6b0aff9d1e7
tree92a88ed7ca388e0116ed22de41b30b1a30bf504f
parente1d1b4f4971419b50659d199af87681b66868c5d
nproc: support OMP_THREAD_LIMIT to set a max value

This comes from the latest gnulib.
Also handling of OMP_NUM_THREADS has been adjusted
to support comma separated values indicating a nesting level,
in which case the first value is taken.  Also OMP_NUM_THREADS=0
is now ignored instead of being treated as 1, to match
the behavior of libgomp.

* NEWS: Mention the OMP_THREAD_LIMIT improvement,
and OMP_NUM_THREADS now handling nested values.
* doc/coreutils.texi (nproc invocation): Describe OMP_THREAD_LIMIT
as a way to set the max value, with OMP_THREAD_LIMIT setting the min.
* tests/misc/nproc-override.sh: A new test to exercise the
updated gnulib code with all combinations of these OMP variables.
* tests/local.mk: Reference the new test.
NEWS
doc/coreutils.texi
tests/local.mk
tests/misc/nproc-override.sh [new file with mode: 0755]