Skip to content

Commit

Permalink
Fix out of date entry on parallelism to also remove NumbaPro reference
Browse files Browse the repository at this point in the history
  • Loading branch information
seibert committed Aug 28, 2017
1 parent ab47a43 commit 93058b9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions docs/source/user/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,20 @@ Does Numba vectorize array computations (SIMD)?
Numba doesn't implement such optimizations by itself, but it lets LLVM
apply them.

Does Numba parallelize code?
----------------------------
Does Numba automatically parallelize code?
------------------------------------------

In can, in some cases:

* Ufuncs and gufuncs with the ``target="parallel"`` option will run on multiple threads.
* The experimental ``parallel=True`` option to ``@jit`` will attempt to optimize
array operations and run them in parallel.

No, it doesn't. If you want to run computations concurrently on multiple
threads (by :ref:`releasing the GIL <jit-nogil>`) or processes, you'll
have to handle the pooling and synchronisation yourself.
You can also manually run computations on multiple threads yourself and use
the ``nogil=True`` option (see :ref:`releasing the GIL <jit-nogil>`). Numba
can also target parallel execution on GPU architectures using its CUDA and HSA
backends.

Or, you can take a look at NumbaPro_.

Can Numba speed up short-running functions?
-------------------------------------------
Expand Down

0 comments on commit 93058b9

Please sign in to comment.