Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load and init Extrae on all processes in example script #18

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/test-distributed-work.jl
Original file line number Diff line number Diff line change
@@ -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)))
Expand All @@ -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)
Expand All @@ -29,4 +29,4 @@ end

test_distributed_work()

println("END TEST")
println("END TEST")
Loading