From 188400d664a8c8be2f81caf2aae565b8abe8ca9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez=20Ram=C3=ADrez?= Date: Mon, 6 May 2024 16:04:35 +0200 Subject: [PATCH] Update example --- scripts/test-distributed-work.jl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/test-distributed-work.jl b/scripts/test-distributed-work.jl index 94cd79d..bbd85cc 100644 --- a/scripts/test-distributed-work.jl +++ b/scripts/test-distributed-work.jl @@ -1,15 +1,14 @@ using Distributed using Extrae -using Cassette ENV["JULIA_DEBUG"] = Extrae @everywhere ENV["JULIA_DEBUG"] = Extrae -addprocs_extrae(1) +addprocs(1) function random_sleep() println("Worker started: ", myid()) - sleep(rand((1,2,3,4,5))) + sleep(rand((1, 2, 3, 4, 5))) println("Worker woke up: ", myid()) end @@ -21,13 +20,13 @@ end function test_distributed_work() A = rand(1000, 1000) - a1 = @spawnat :any matrix_multiply(A) + a1 = @spawnat :any matrix_multiply(A) a2 = @spawnat :any matrix_multiply(A) fetch(a1) fetch(a2) @everywhere Extrae.finish() end -Cassette.overdub(Extrae.ExtraeCtx(), test_distributed_work) +test_distributed_work() println("END TEST") \ No newline at end of file