summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-10-08 20:23:32 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-10-28 22:24:40 +0100
commit23d546176e2fe0b4d7d2e9100032bbf8107927e1 (patch)
tree3903771cf6e196eed35083f871b09aa98408fec3 /doc/release
parent7be18edfaae4d0ba6a888160d1cc57c453b568f2 (diff)
downloadnumpy-23d546176e2fe0b4d7d2e9100032bbf8107927e1.tar.gz
ENH: support parallel compilation of extensions
Allow extensions using numpy.distutils to compile in parallel. By passing `--jobs=n` or `-j n` to `setup.py build` the compilation of extensions is now performed in `n` parallel processes. Additionally the environment variable NPY_NUM_BUILD_JOBS is used as the default value, if its unset the default is serial compilation. The parallelization is limited to within the files of an extension, so only numpy multiarraymodule really profits but its still a nice improvement when you have 2-4 cores. Unfortunately Cython will not profit at all as it tends to build one module per file.
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/1.10.0-notes.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/release/1.10.0-notes.rst b/doc/release/1.10.0-notes.rst
index 70a9fae3f..943cc04cf 100644
--- a/doc/release/1.10.0-notes.rst
+++ b/doc/release/1.10.0-notes.rst
@@ -6,6 +6,8 @@ This release supports Python 2.6 - 2.7 and 3.2 - 3.4.
Highlights
==========
+* numpy.distutils now supports parallel compilation via the --jobs/-j argument
+ passed to setup.py build
Dropped Support
@@ -35,6 +37,13 @@ New Features
Compared to `np.power(x, 1./3.)` it is well defined for negative real floats
and a bit faster.
+numpy.distutils now allows parallel compilation
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+By passing `--jobs=n` or `-j n` to `setup.py build` the compilation of
+extensions is now performed in `n` parallel processes.
+The parallelization is limited to files within one extension so projects using
+Cython will not profit because it builds extensions from single files.
+
Improvements
============