Skip to content

PR: Transform parallelism md to rst #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Parallelism
Parallelism
===========

Parallelism is mostly, but not completely, an execution or runtime concern
rather than an API concern. Execution semantics are out of scope for this API
Expand All @@ -7,7 +8,7 @@ involves how libraries allow users to exercise control over the parallelism
they offer, such as:

- Via environment variables. This is the method of choice for BLAS libraries and libraries using OpenMP.
- Via a keyword to individual functions or methods. Examples include the `n_jobs` keyword used in scikit-learn and the `workers` keyword used in SciPy.
- Via a keyword to individual functions or methods. Examples include the ``n_jobs`` keyword used in scikit-learn and the ``workers`` keyword used in SciPy.
- Build-time settings to enable a parallel or distributed backend.
- Via letting the user set chunk sizes. Dask uses this approach.

Expand All @@ -19,5 +20,5 @@ coordination of parallelization behavior in a stack of Python libraries are:
2. A common library providing a parallelization layer

Option (1) may possibly fit in a future version of this array API standard.
[array-api issue 4](https://github.com/data-apis/array-api/issues/4) contains
`array-api issue 4 <https://github.com/data-apis/array-api/issues/4>`_ contains
more detailed discussion on the topic of parallelism.