lenskit.parallel.config#
Functions#
Get the active parallel configuration, making sure parallelism is configured |
|
|
Set up and configure LensKit parallelism. This only needs to be called if |
Make sure LensKit parallelism is configured, and configure with defaults if |
|
|
Query whether this Python supports free-threading. |
Return the effective CPU count using the best available data. Tries the following in order: |
Module Contents#
- lenskit.parallel.config.get_parallel_config()#
Get the active parallel configuration, making sure parallelism is configured first.
- Return type:
- lenskit.parallel.config.init_threading(config=None)#
Set up and configure LensKit parallelism. This only needs to be called if you want to control when and how parallelism is set up; components using parallelism will call
ensure_init(), which will call this function with its default arguments if it has not been called.See also
- Parameters:
config (lenskit.config.ParallelSettings | None)
- lenskit.parallel.config.ensure_parallel_init()#
Make sure LensKit parallelism is configured, and configure with defaults if it is not.
Components using parallelism or intensive computations should call this function before they begin training.
- lenskit.parallel.config.is_free_threaded(*, require_active=False)#
Query whether this Python supports free-threading.
- lenskit.parallel.config.effective_cpu_count()#
Return the effective CPU count using the best available data. Tries the following in order:
- Return type:
Exported Aliases#
- lenskit.parallel.config.init_accel_pool()#
Re-exported alias for
lenskit._accel.init_accel_pool().
- class lenskit.parallel.config.ParallelSettings#
Re-exported alias for
lenskit.config.ParallelSettings.
- lenskit.parallel.config.lenskit_config()#
Re-exported alias for
lenskit.config.lenskit_config().
- lenskit.parallel.config.get_logger()#
Re-exported alias for
lenskit.logging.get_logger().