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 config API section.