From e262c94043e2e6133404990feb7fe6735882d59d Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Wed, 19 Jul 2017 16:44:38 -0400 Subject: [PATCH] NEWS: doc removal of include_from_node1 PR #22588 --- NEWS.md | 5 +++++ doc/src/manual/parallel-computing.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index b9041977cec392..95bfc912143c40 100644 --- a/NEWS.md +++ b/NEWS.md @@ -63,6 +63,11 @@ This section lists changes that do not have deprecation warnings. * The `Diagonal` type definition has changed from `Diagonal{T}` to `Diagonal{T,V<:AbstractVector{T}}` ([#22718]). + * On a cluster, all files are now loaded from the local file system rather than node 1 ([#22588]). + To load the same file everywhere from node 1, one possibile alternatively is to broadcast a call to `include_string`: + `@everywhere include_string(Main, $(read("filename", String)), "filename")`. + Improving upon this API is left as an opportunity for packages. + Library improvements -------------------- diff --git a/doc/src/manual/parallel-computing.md b/doc/src/manual/parallel-computing.md index 5ad25d4e737e42..04e1400b295d0e 100644 --- a/doc/src/manual/parallel-computing.md +++ b/doc/src/manual/parallel-computing.md @@ -344,7 +344,7 @@ The function `count_heads` simply adds together `n` random bits. Here is how we trials on two machines, and add together the results: ```julia-repl -julia> @everywhere include("count_heads.jl") +julia> @everywhere include_string(Main, $(read("count_heads.jl", String)), "count_heads.jl") julia> a = @spawn count_heads(100000000) Future(2, 1, 6, Nullable{Any}())