-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX-#248: Rename backends "multiprocessing" to "pymp" and "python" to…
… "pyseq" (#265) Signed-off-by: Igoshev, Iaroslav <[email protected]>
- Loading branch information
Showing
56 changed files
with
575 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
docs/flow/unidist/core/backends/multiprocessing/core/actor.rst
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
docs/flow/unidist/core/backends/multiprocessing/core/api.rst
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
docs/flow/unidist/core/backends/multiprocessing/core/process_manager.rst
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
docs/flow/unidist/core/backends/multiprocessing/remote_function.rst
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.. | ||
Copyright (C) 2021-2023 Modin authors | ||
SPDX-License-Identifier: Apache-2.0 | ||
|
||
:orphan: | ||
|
||
PyMpActor | ||
""""""""" | ||
|
||
The class is specific implementation of :py:class:`~unidist.core.base.actor.Actor` class using Python Multiprocessing backend. | ||
|
||
The :py:class:`~unidist.core.backends.pymp.actor.PyMpActor` implements 2 internal methods: | ||
|
||
* :py:meth:`~unidist.core.backends.pymp.actor.PyMpActor.__getattr__` -- transmits an access responsibility | ||
to the methods of native Python Multiprocessing :py:class:`~unidist.core.backends.pymp.core.actor.Actor`, | ||
held by this class, to :py:class:`~unidist.core.backends.pymp.actor.PyMpActorMethod` class. | ||
* :py:meth:`~unidist.core.backends.pymp.actor.PyMpActor._remote` -- creates native | ||
Python Multiprocessing :py:class:`~unidist.core.backends.pymp.core.actor.Actor` object to be held by this class. | ||
|
||
API | ||
=== | ||
|
||
.. autoclass:: unidist.core.backends.pymp.actor.PyMpActor | ||
:members: | ||
:private-members: | ||
|
||
PyMpActorMethod | ||
""""""""""""""" | ||
|
||
The class is specific implementation of :py:class:`~unidist.core.base.actor.ActorMethod` class using Python Multiprocessing backend. | ||
|
||
The :py:class:`~unidist.core.backends.pymp.actor.PyMpActorMethod` implements | ||
internal method :py:meth:`~unidist.core.backends.pymp.actor.PyMpActorMethod._remote` | ||
that is responsible for calls of native Python Multiprocessing :py:class:`~unidist.core.backends.pymp.core.actor.Actor` | ||
class methods. | ||
|
||
API | ||
=== | ||
|
||
.. autoclass:: unidist.core.backends.pymp.actor.PyMpActorMethod | ||
:members: | ||
:private-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.. | ||
Copyright (C) 2021-2023 Modin authors | ||
SPDX-License-Identifier: Apache-2.0 | ||
|
||
:orphan: | ||
|
||
Actor | ||
""""" | ||
|
||
Python Multiprocessing :py:class:`~unidist.core.backends.pymp.core.actor.Actor` class is | ||
intended to transform a user-defined class to the class shared between processes (using `multiprocessing.managers.BaseManager`_), | ||
which methods will be executed in a separate Python Multiprocessing :py:class:`~unidist.core.backends.pymp.core.process_manager.Worker`. | ||
|
||
API | ||
=== | ||
|
||
.. autoclass:: unidist.core.backends.pymp.core.actor.Actor | ||
:members: | ||
|
||
ActorMethod | ||
""""""""""" | ||
|
||
The :py:class:`~unidist.core.backends.pymp.core.actor.ActorMethod` class is a wrapper over the method of | ||
the shared between processes class, stored in Python Multiprocessing :py:class:`~unidist.core.backends.pymp.core.actor.Actor`. | ||
Method :py:meth:`~unidist.core.backends.pymp.core.actor.ActorMethod.submit` wraps a method of the shared between processes | ||
class object to :py:class:`~unidist.core.backends.pymp.core.process_manager.Task` and adds it | ||
to task queue of Python Multiprocessing :py:class:`~unidist.core.backends.pymp.core.process_manager.Worker`, used by | ||
Python Multiprocessing :py:class:`~unidist.core.backends.pymp.core.actor.Actor`. | ||
|
||
API | ||
=== | ||
|
||
.. autoclass:: unidist.core.backends.pymp.core.actor.ActorMethod | ||
:members: | ||
|
||
.. _`multiprocessing.managers.BaseManager`: https://docs.python.org/3/library/multiprocessing.html#multiprocessing.managers.BaseManager |
Oops, something went wrong.