From 194f8b423f51d64677ee3843a85edd15d1dc14d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Mon, 6 May 2024 10:19:22 -0400 Subject: [PATCH] Load and init Extrae on all processes in example script --- scripts/test-distributed-work.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/test-distributed-work.jl b/scripts/test-distributed-work.jl index bbd85cc..3c73de6 100644 --- a/scripts/test-distributed-work.jl +++ b/scripts/test-distributed-work.jl @@ -1,11 +1,11 @@ using Distributed -using Extrae - -ENV["JULIA_DEBUG"] = Extrae -@everywhere ENV["JULIA_DEBUG"] = Extrae addprocs(1) +@everywhere using Extrae + +@everywhere ENV["JULIA_DEBUG"] = Extrae + function random_sleep() println("Worker started: ", myid()) sleep(rand((1, 2, 3, 4, 5))) @@ -18,7 +18,7 @@ end end function test_distributed_work() - + @everywhere Extrae.init() A = rand(1000, 1000) a1 = @spawnat :any matrix_multiply(A) a2 = @spawnat :any matrix_multiply(A) @@ -29,4 +29,4 @@ end test_distributed_work() -println("END TEST") \ No newline at end of file +println("END TEST")