Skip to content

Add batch parallelization to local search #954#1298

Merged
mwever merged 1 commit intodevelopmentfrom
feature/parallel-local-search-954
Mar 4, 2026
Merged

Add batch parallelization to local search #954#1298
mwever merged 1 commit intodevelopmentfrom
feature/parallel-local-search-954

Conversation

@JannisKst
Copy link
Copy Markdown
Collaborator

This PR introduces batch parallelization to LocalSearch.

  • Add user-tunable n_jobs parameter to control number of parallel workers
  • Split starting points into n_jobs batches so each worker performs search on one batch
  • Handle all edge-case n_jobs values (negative, zero, or too large)

These changes were benchmarked in the SMAC3-Benchmarking repository, demonstrating improved runtime and consistent acquisition performance across multiple experiments.

- Add user-tunable n_jobs parameter to LocalAndSortedRandomSearch and LocalSearch
- Split starting points into n_jobs batches so each worker performs search on one batch
- Handle all edge-case n_jobs values (negative, zero, or too large)
Copy link
Copy Markdown
Contributor

@mwever mwever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice and clean

@mwever mwever merged commit 1c97001 into development Mar 4, 2026
11 checks passed
@mwever mwever deleted the feature/parallel-local-search-954 branch March 4, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants