Skip to content

Commit

Permalink
initialize backend threads
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed May 10, 2024
1 parent 5562980 commit c4c68ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenskit/parallel/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class WorkerContext(NamedTuple, Generic[M, A, R]):
def initalize(cfg: WorkerConfig, ctx: ModelData) -> None:
global __work_context
manylog.init_worker_logging(cfg.log_addr)
init_parallel(processes=1, threads=cfg.threads, child_threads=1)
init_parallel(processes=1, threads=1, backend_threads=cfg.threads, child_threads=1)

seed = seedbank.derive_seed(mp.current_process().name, base=cfg.seed)
seedbank.initialize(seed)
Expand Down

0 comments on commit c4c68ab

Please sign in to comment.