You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that we used 1 .+ fetch(r) instead of 1 .+ r. This is because we do not know where the code will run, so in general a fetch might be required to move r to the process doing the addition. In this case, @spawnat is smart enough to perform the computation on the process that owns r, so the fetch will be a no-op (no work is done).
Is it really true that the computation is done on the process that owns r? Based on the two Futures returned, it looks to me like the random matrix is created by process 2 (so that process 2 owns r), and the addition is done by process 3.
The text was updated successfully, but these errors were encountered:
In the Manual page on Multi-Processing and Distributed Computing (https://docs.julialang.org/en/v1/manual/distributed-computing/#Multi-processing-and-Distributed-Computing), the following code block appears
Followed by the paragraph
Is it really true that the computation is done on the process that owns
r
? Based on the twoFuture
s returned, it looks to me like the random matrix is created by process 2 (so that process 2 ownsr
), and the addition is done by process 3.The text was updated successfully, but these errors were encountered: