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:
def limit_threads_in_optimization(...) -> ...:
if sys.platform == "darwin":
yield
else:
# the current routineQuestion:
- Is it only about
Linux? Or does it also relate toWindows? - Is limiting to
max_thread=1the 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
Source: optuna/optuna