Skip to content

Commit

Permalink
Adding logger inside Resampler declaration for multi threading
Browse files Browse the repository at this point in the history
  • Loading branch information
pebeto committed May 18, 2024
1 parent 642bca7 commit 2b63fa8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tuned_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ function assemble_events!(metamodels,
end
end
# One resampling_machine per task
machs = [resampling_machine,
machs = [resampling_machine,
[machine(Resampler(
model= resampling_machine.model.model,
resampling = resampling_machine.model.resampling,
Expand All @@ -610,9 +610,9 @@ function assemble_events!(metamodels,
repeats = resampling_machine.model.repeats,
acceleration = resampling_machine.model.acceleration,
cache = resampling_machine.model.cache,
compact = resampling_machine.model.compact
), resampling_machine.args...; cache=false) for
_ in 2:length(partitions)]...]
compact = resampling_machine.model.compact,
logger = resampling_machine.model.logger),
resampling_machine.args...; cache=false) for _ in 2:length(partitions)]...]

@sync for (i, parts) in enumerate(partitions)
Threads.@spawn begin
Expand Down

0 comments on commit 2b63fa8

Please sign in to comment.