|
|
@ -25,11 +25,12 @@ import os
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ['ParallelExecutor', 'ExecutionStrategy', 'BuildStrategy']
|
|
|
|
__all__ = ['ParallelExecutor', 'ExecutionStrategy', 'BuildStrategy']
|
|
|
|
|
|
|
|
|
|
|
|
ExecutionStrategy = core.ParallelExecutor.ExecutionStrategy
|
|
|
|
if os.name != 'nt':
|
|
|
|
BuildStrategy = core.ParallelExecutor.BuildStrategy
|
|
|
|
ExecutionStrategy = core.ParallelExecutor.ExecutionStrategy
|
|
|
|
|
|
|
|
BuildStrategy = core.ParallelExecutor.BuildStrategy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ParallelExecutor(object):
|
|
|
|
class ParallelExecutor(object):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
ParallelExecutor is designed for data parallelism, which focuses on distributing
|
|
|
|
ParallelExecutor is designed for data parallelism, which focuses on distributing
|
|
|
|
the data across different nodes and every node operates on the data in parallel.
|
|
|
|
the data across different nodes and every node operates on the data in parallel.
|
|
|
|