#6768·optuna

Followup of the OMP issue

Author: nabenabe0928Created Jul 24, 2026Updated Sep 4, 2026
Labelscode-fix

Motivation

See:

[!IMPORTANT] Any PRs without benchmarking results and discussion about Windows will be closed.

Suggestion

early yield:

python
def limit_threads_in_optimization(...) -> ...:
    if sys.platform == "darwin":
        yield
    else:
        # the current routine

Question:

  • Is it only about Linux? Or does it also relate to Windows?
  • Is limiting to max_thread=1 the best solution? (benchmarking required)
  • Should we rename the function as well, given the thread limit will not be applied to MacOS?

Additional context (optional)

No response