QDpy
Loading...
Searching...
No Matches
qdpy.base.ParallelismManager Class Reference
Inheritance diagram for qdpy.base.ParallelismManager:

Public Member Functions

Any open (self)
None close (self)

Detailed Description

Open and close an evaluation executor as a context manager.

Use ``none`` or ``sequential`` for in-process evaluation,
``multithreading`` for a thread pool, and ``multiprocessing`` or
``concurrent`` for a process pool. The process pool prefers forkserver
when available and otherwise uses spawn. SCOOP and Ray require
their optional runtime packages.

:param parallelism_type: Executor backend name.
:param max_workers: Optional worker count for the standard pools or CPU
    count for a local Ray runtime.
:param toolbox: Optional DEAP toolbox copied and bound to executor.map.
:param force_worker_suicide: Install the process worker's interrupt handler.
:param ray_address: Optional cluster address for the Ray backend.

Process evaluation needs picklable evaluation functions and candidates.
Protect executable entry points with the usual main guard.

Definition at line 336 of file base.py.

Member Function Documentation

◆ close()

None qdpy.base.ParallelismManager.close ( self)
Close the current executor.

Definition at line 429 of file base.py.

◆ open()

Any qdpy.base.ParallelismManager.open ( self)
Open and prepare a new executor according to `self.parallelism_type`.

Definition at line 397 of file base.py.


The documentation for this class was generated from the following file: