From 5999a54d65c5407021b76dbf78dde451fcf7053b Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Tue, 20 Aug 2024 12:47:56 +0200 Subject: [PATCH 1/2] fix hardcoded channel size resulting in deadlocks --- src/scheduling.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scheduling.jl b/src/scheduling.jl index 5213b86..996e375 100644 --- a/src/scheduling.jl +++ b/src/scheduling.jl @@ -88,7 +88,7 @@ function run_events(graph::MetaDiGraph; max_concurrent::Int, fast::Bool = false) graphs_tasks = Dict{Int, Dagger.DTask}() - notifications = RemoteChannel(() -> Channel{Int}(32)) + notifications = RemoteChannel(() -> Channel{Int}(max_concurrent)) coefficients = FrameworkDemo.calibrate_crunch(; fast = fast) for idx in 1:event_count From 08744b8ed92942872999b7c4b1e5111fa8bc304e Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Tue, 20 Aug 2024 12:48:13 +0200 Subject: [PATCH 2/2] fix typo --- .vscode/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index de7007f..2e6ac66 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,7 +2,7 @@ "[julia]": { "editor.detectIndentation": false, "editor.insertSpaces": true, - "editor.tabSize": 10, + "editor.tabSize": 4, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "files.trimTrailingWhitespace": true,