Skip to content

[Feature]: Smart default for parallelism #1018

@MilesCranmer

Description

@MilesCranmer

Feature Request

It would be nice to have parallelism be set in a smart way (parallelism="auto"), rather than always set to "multithreading". For example:

  1. deterministic == True => parallelism="serial"
    • We could also forward the global numpy random seed, if the user does not provide a random state?
  2. numprocs is not None => parallelism="multiprocessing"
  3. cluster_manager is not None => parallelism="multiprocessing"

And in also other cases, we default to "multithreading".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions