Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1003 Bytes

unidist_on_pymp.rst

File metadata and controls

37 lines (22 loc) · 1003 Bytes
orphan:

Unidist on PyMp

This section describes the use of unidist with the Python Multiprocessing execution backend.

There are two ways to choose the execution backend to run on. First, by setting the UNIDIST_BACKEND environment variable:

# unidist will use Python Multiprocessing backend
$ export UNIDIST_BACKEND=pymp
import os

# unidist will use Python Multiprocessing backend
os.environ["UNIDIST_BACKEND"] = "pymp"

Second, by setting the configuration value associated with the environment variable:

from unidist.config import Backend

Backend.put("pymp")  # unidist will use Python Multiprocessing backend

For more information on the environment variables and associated configs specific to the Python Multiprocessing backend see :doc:`config API </flow/unidist/config>` section.