Hi,
the follwoing three test examples are minmal examples of my code.
I do not understand why the speed is always the same.
Moreover, Julia seems to use only one core.
The whole CPU usage is only around 30%.
If I use the minimal example from Julia docs, this works perfectly.
I get 90-100% CPU usage.
pmap(svd, collection of some matrices)
Can somebody help me?
function test1(a)
for i in 1:a
randn(10^8)
end
end
@everywhere function test2(a)
@parallel for i in 1:a
randn(10^8)
end
end
@everywhere function test3(a)
for i in 1:a
randn(10^8)
end
end
@time test1(10)
@time test2(10)
@time pmap(test3, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
Kind regards,
Till