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")