Skip to content

Commit b87c5ba

Browse files
committed
Merge branch 'master' of github.com:JuliaLang/julia
2 parents 99fcc68 + 3d9d197 commit b87c5ba

30 files changed

+453
-187
lines changed

base/basedocs.jl

+13
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,16 @@ keywords[:...] = doc"""
264264
`FFTW.set_num_threads(np)` to use `np` threads, if you have `np`
265265
processors.
266266
""" fft
267+
268+
@doc doc"""
269+
include("file.jl")
270+
271+
Evaluate the contents of a source file in the current context.
272+
During including, a task-local include path is set to the directory
273+
containing the file. Nested calls to `include` will search
274+
relative to that path. All paths refer to files on node 1 when
275+
running in parallel, and files will be fetched from node 1. This
276+
function is typically used to load source interactively, or to
277+
combine files in packages that are broken into multiple source
278+
files.
279+
""" include_from_node1

base/darray.jl

+3
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ reduce(f::Function, d::DArray) =
310310
mapreduce(fetch, f,
311311
Any[ @spawnat p reduce(f, localpart(d)) for p in procs(d) ])
312312

313+
mapreduce(f :: Function, opt :: Function, d :: DArray) =
314+
mapreduce(fetch, opt,
315+
Any[ @spawnat p mapreduce(f, opt, localpart(d)) for p in procs(d) ])
313316

314317
function map!(f::Callable, d::DArray)
315318
@sync begin

0 commit comments

Comments
 (0)