Skip to content

Commit a3ebe1a

Browse files
authored
rename Parallel to Distributed (#20486)
1 parent ba0ee08 commit a3ebe1a

17 files changed

+76
-76
lines changed

base/parallel/Parallel.jl renamed to base/distributed/Distributed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is a part of Julia. License is MIT: http://julialang.org/license
22

3-
module Parallel
3+
module Distributed
44

55
# imports for extension
66
import Base: getindex, wait, put!, take!, fetch, isready, push!, length,

base/parallel/cluster.jl renamed to base/distributed/cluster.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ function disable_nagle(sock)
879879
@static if is_linux()
880880
# tcp_quickack is a linux only option
881881
if ccall(:jl_tcp_quickack, Cint, (Ptr{Void}, Cint), sock.handle, 1) < 0
882-
warn_once("Parallel networking unoptimized ( Error enabling TCP_QUICKACK : ", Libc.strerror(Libc.errno()), " )")
882+
warn_once("Networking unoptimized ( Error enabling TCP_QUICKACK : ", Libc.strerror(Libc.errno()), " )")
883883
end
884884
end
885885
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

base/precompile.jl

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ precompile(Base.LineEdit.write_prompt, (Base.Terminals.TTYTerminal, Base.LineEdi
107107
precompile(Base.LineEdit.write_prompt, (Base.Terminals.TerminalBuffer, Base.LineEdit.PromptState))
108108
precompile(Base.Multimedia.TextDisplay, (Base.TTY,))
109109
precompile(Base.Multimedia.display, (Int,))
110-
precompile(Base.Parallel.ProcessGroup, (Int, Array{Any,1}, Array{Any,1}))
110+
precompile(Base.Distributed.ProcessGroup, (Int, Array{Any,1}, Array{Any,1}))
111111
precompile(Base.REPL.:(==), (Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}))
112112
precompile(Base.REPL.LineEditREPL, (Base.Terminals.TTYTerminal, Bool, String, String, String, String, String, Bool, Bool, Bool, Bool))
113113
precompile(Base.REPL.LineEditREPL, (Base.Terminals.TTYTerminal,))
@@ -140,8 +140,8 @@ precompile(Base.REPLCompletions.completions, (String, Int))
140140
precompile(Base.Random.srand, ())
141141
precompile(Base.Random.srand, (String, Int))
142142
precompile(Base.Random.srand, (UInt,))
143-
precompile(Base.Parallel.RemoteChannel, (Int, Int, Int))
144-
precompile(Base.Parallel.RemoteValue, ())
143+
precompile(Base.Distributed.RemoteChannel, (Int, Int, Int))
144+
precompile(Base.Distributed.RemoteValue, ())
145145
precompile(Base.Set, ())
146146
precompile(Base.SystemError, (String,))
147147
precompile(Base.TCPSocket, (Ptr{Void},))
@@ -207,8 +207,8 @@ precompile(Base.fdio, (Int32,))
207207
precompile(Base.fill!, (BitArray{1}, Bool))
208208
precompile(Base.first, (UnitRange{Int},))
209209
precompile(Base.flush, (IOStream,))
210-
precompile(Base.Parallel.flush_gc_msgs, ())
211-
precompile(Base.Parallel.flush_gc_msgs, (Base.Parallel.Worker,))
210+
precompile(Base.Distributed.flush_gc_msgs, ())
211+
precompile(Base.Distributed.flush_gc_msgs, (Base.Distributed.Worker,))
212212
precompile(Base.get, (Base.EnvHash, String, String))
213213
precompile(Base.get, (Dict{Any, Any}, Tuple{Int, Int}, Bool))
214214
precompile(Base.get, (Dict{Any,Any}, Symbol, String))
@@ -223,8 +223,8 @@ precompile(Base.getindex, (Type{String}, String, String))
223223
precompile(Base.getindex, (Type{Dict{Any, Any}}, Dict{Any, Any}, Dict{Any, Any}, Dict{Any, Any}, Dict{Any, Any}, Dict{Any, Any}))
224224
precompile(Base.getpid, ())
225225
precompile(Base.hash, (Int,))
226-
precompile(Base.hash, (Base.Parallel.RemoteChannel, UInt))
227-
precompile(Base.hash, (Base.Parallel.RemoteChannel,))
226+
precompile(Base.hash, (Base.Distributed.RemoteChannel, UInt))
227+
precompile(Base.hash, (Base.Distributed.RemoteChannel,))
228228
precompile(Base.haskey, (Base.EnvHash, String))
229229
precompile(Base.haskey, (Dict{Symbol,Any}, Symbol))
230230
precompile(Base.haskey, (ObjectIdDict, Symbol))
@@ -254,8 +254,8 @@ precompile(Base.isequal, (Base.LineEdit.Prompt, Base.LineEdit.Prompt))
254254
precompile(Base.isequal, (Bool, Bool))
255255
precompile(Base.isequal, (Char, String))
256256
precompile(Base.isequal, (Int,Int))
257-
precompile(Base.isequal, (Base.Parallel.RemoteChannel, Base.Parallel.RemoteChannel))
258-
precompile(Base.isequal, (Base.Parallel.RemoteChannel, WeakRef))
257+
precompile(Base.isequal, (Base.Distributed.RemoteChannel, Base.Distributed.RemoteChannel))
258+
precompile(Base.isequal, (Base.Distributed.RemoteChannel, WeakRef))
259259
precompile(Base.isequal, (Symbol, Symbol))
260260
precompile(Base.isequal, (VersionNumber, VersionNumber))
261261
precompile(Base.isequal, (Void, Void))
@@ -333,7 +333,7 @@ precompile(Base.reinit_stdio, ())
333333
precompile(Base.repeat, (String, Int))
334334
precompile(Base.repl_cmd, (Cmd, Base.Terminals.TTYTerminal))
335335
precompile(Base.require, (Symbol,))
336-
precompile(Base.Parallel.remoteref_id, (Base.Parallel.RemoteChannel,))
336+
precompile(Base.Distributed.remoteref_id, (Base.Distributed.RemoteChannel,))
337337
precompile(Base.rsearch, (String, Char))
338338
precompile(Base.rstrip, (String,))
339339
precompile(Base.run, (Cmd,))
@@ -388,12 +388,12 @@ precompile(Base.Symbol, (SubString{String},))
388388
precompile(Base.sync_begin, ())
389389
precompile(Base.sync_end, ())
390390
precompile(Base.systemerror, (Symbol, Bool))
391-
precompile(Base.Parallel.take!, (Base.Parallel.RemoteValue,))
392-
precompile(Base.Parallel.take!, (Base.Parallel.RemoteChannel,))
393-
precompile(Base.Parallel.take_ref, (Tuple{Int,Int},))
391+
precompile(Base.Distributed.take!, (Base.Distributed.RemoteValue,))
392+
precompile(Base.Distributed.take!, (Base.Distributed.RemoteChannel,))
393+
precompile(Base.Distributed.take_ref, (Tuple{Int,Int},))
394394
precompile(Base.take!, (IOBuffer,))
395395
precompile(Base.task_local_storage, ())
396-
precompile(Base.Parallel.terminate_all_workers, ())
396+
precompile(Base.Distributed.terminate_all_workers, ())
397397
precompile(Base.try_include, (String,))
398398
precompile(Base.UInt, (UInt,))
399399
precompile(Base.unsafe_copy!, (Array{Dict{Any, Any}, 1}, Int, Array{Dict{Any, Any}, 1}, Int, Int))
@@ -403,7 +403,7 @@ precompile(Base.uv_error, (String, Bool))
403403
precompile(Base.uvfinalize, (Base.TTY,))
404404
precompile(Base.vcat, (Base.LineEdit.Prompt,))
405405
precompile(Base.wait, ())
406-
precompile(Base.Parallel.wait, (Base.Parallel.RemoteChannel,))
406+
precompile(Base.Distributed.wait, (Base.Distributed.RemoteChannel,))
407407
precompile(Base.write, (Base.Terminals.TTYTerminal, String))
408408
precompile(Base.write, (Base.Terminals.TerminalBuffer, String))
409409
precompile(Base.write, (IOBuffer, Vector{UInt8}))
@@ -445,9 +445,9 @@ precompile(Base.get, (Base.Dict{Any, Any}, Tuple{Int64, Int64}, Bool))
445445
precompile(Base.LineEdit.refresh_multi_line, (Array{Any, 1}, Base.Terminals.TerminalBuffer, Base.Terminals.TTYTerminal, Base.IOBuffer, Base.LineEdit.InputAreaState, Base.LineEdit.PromptState))
446446
precompile(Base.schedule, (Array{Any, 1}, Task, Void))
447447
precompile(Base.LineEdit.match_input, (Function, Base.LineEdit.MIState, Base.Terminals.TTYTerminal, Array{Char, 1}, Base.Dict{Char, Any}))
448-
precompile(==, (Base.Parallel.RemoteChannel, WeakRef))
449-
precompile(==, (Base.Parallel.RemoteChannel, Base.Parallel.RemoteChannel))
450-
precompile(Base.Parallel.send_del_client, (Base.Parallel.RemoteChannel,))
448+
precompile(==, (Base.Distributed.RemoteChannel, WeakRef))
449+
precompile(==, (Base.Distributed.RemoteChannel, Base.Distributed.RemoteChannel))
450+
precompile(Base.Distributed.send_del_client, (Base.Distributed.RemoteChannel,))
451451
precompile(!=, (Base.SubString{String}, String))
452452
precompile(Base.join, (Base.IOBuffer, Array{Base.SubString{String}, 1}, String))
453453
precompile(Base.joinpath, (String, String, String, String))
@@ -459,22 +459,22 @@ precompile(Base.vect, (Base.LineEdit.Prompt, String))
459459
isdefined(Core, :Inference) && Base.code_typed(Base.code_typed)
460460

461461
# Speeding up addprocs for LocalManager
462-
precompile(Base.Parallel.start_worker, ())
463-
precompile(Base.Parallel.start_worker, (Base.TTY,))
464-
precompile(Base.Parallel.process_messages, (Base.TCPSocket, Base.TCPSocket))
465-
precompile(Base.Parallel.process_messages, (Base.TCPSocket, Base.TCPSocket, Void))
466-
precompile(Base.Parallel.process_tcp_streams, (Base.TCPSocket, Base.TCPSocket, Void))
467-
precompile(Base.Parallel.message_handler_loop, (Base.TCPSocket, Base.TCPSocket, Void))
468-
precompile(Base.Parallel.connect_to_peer, (Base.Parallel.LocalManager, Int64, Base.Parallel.WorkerConfig))
469-
precompile(Base.Parallel.connect, (Base.Parallel.LocalManager, Int64, Base.Parallel.WorkerConfig))
470-
precompile(Base.Parallel.connect_w2w, (Int64, Base.Parallel.WorkerConfig))
471-
precompile(Base.Parallel.connect_to_worker, (String, Int64))
472-
precompile(Base.Parallel.addprocs, (Base.Parallel.LocalManager, ))
473-
precompile(Base.Parallel.addprocs, (Int, ))
474-
precompile(Base.Parallel.setup_launched_worker, (Base.Parallel.LocalManager, Dict, Base.Parallel.WorkerConfig, Array{Int,1}))
475-
precompile(Base.Parallel.create_worker, (Base.Parallel.LocalManager, Dict, Base.Parallel.WorkerConfig))
476-
precompile(Base.Parallel.launch, (Base.Parallel.LocalManager, Dict, Array{Base.Parallel.WorkerConfig, 1}, Base.Condition))
477-
precompile(Base.Parallel.set_valid_processes, (Array{Int, 1}, ))
462+
precompile(Base.Distributed.start_worker, ())
463+
precompile(Base.Distributed.start_worker, (Base.TTY,))
464+
precompile(Base.Distributed.process_messages, (Base.TCPSocket, Base.TCPSocket))
465+
precompile(Base.Distributed.process_messages, (Base.TCPSocket, Base.TCPSocket, Void))
466+
precompile(Base.Distributed.process_tcp_streams, (Base.TCPSocket, Base.TCPSocket, Void))
467+
precompile(Base.Distributed.message_handler_loop, (Base.TCPSocket, Base.TCPSocket, Void))
468+
precompile(Base.Distributed.connect_to_peer, (Base.Distributed.LocalManager, Int64, Base.Distributed.WorkerConfig))
469+
precompile(Base.Distributed.connect, (Base.Distributed.LocalManager, Int64, Base.Distributed.WorkerConfig))
470+
precompile(Base.Distributed.connect_w2w, (Int64, Base.Distributed.WorkerConfig))
471+
precompile(Base.Distributed.connect_to_worker, (String, Int64))
472+
precompile(Base.Distributed.addprocs, (Base.Distributed.LocalManager, ))
473+
precompile(Base.Distributed.addprocs, (Int, ))
474+
precompile(Base.Distributed.setup_launched_worker, (Base.Distributed.LocalManager, Dict, Base.Distributed.WorkerConfig, Array{Int,1}))
475+
precompile(Base.Distributed.create_worker, (Base.Distributed.LocalManager, Dict, Base.Distributed.WorkerConfig))
476+
precompile(Base.Distributed.launch, (Base.Distributed.LocalManager, Dict, Array{Base.Distributed.WorkerConfig, 1}, Base.Condition))
477+
precompile(Base.Distributed.set_valid_processes, (Array{Int, 1}, ))
478478

479479
# Speed up repl help
480480
sprint(Markdown.term, @doc mean)

base/sysimg.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ importall .SparseArrays
358358

359359
include("asyncmap.jl")
360360

361-
include("parallel/Parallel.jl")
362-
importall .Parallel
361+
include("distributed/Distributed.jl")
362+
importall .Distributed
363363
include("sharedarray.jl")
364364

365365
# code loading
@@ -387,7 +387,7 @@ function __init__()
387387
Multimedia.reinit_displays() # since Multimedia.displays uses STDOUT as fallback
388388
early_init()
389389
init_load_path()
390-
Parallel.init_parallel()
390+
Distributed.init_parallel()
391391
init_threadcall()
392392
end
393393

doc/src/stdlib/parallel.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ Base.CachingPool
6262
Base.default_worker_pool
6363
Base.clear!(::CachingPool)
6464
Base.remote
65-
Base.remotecall(::Any, ::Base.Parallel.AbstractWorkerPool, ::Any...)
66-
Base.remotecall_wait(::Any, ::Base.Parallel.AbstractWorkerPool, ::Any...)
67-
Base.remotecall_fetch(::Any, ::Base.Parallel.AbstractWorkerPool, ::Any...)
68-
Base.remote_do(::Any, ::Base.Parallel.AbstractWorkerPool, ::Any...)
65+
Base.remotecall(::Any, ::Base.Distributed.AbstractWorkerPool, ::Any...)
66+
Base.remotecall_wait(::Any, ::Base.Distributed.AbstractWorkerPool, ::Any...)
67+
Base.remotecall_fetch(::Any, ::Base.Distributed.AbstractWorkerPool, ::Any...)
68+
Base.remote_do(::Any, ::Base.Distributed.AbstractWorkerPool, ::Any...)
6969
Base.timedwait
7070
Base.@spawn
7171
Base.@spawnat

test/choosetests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function choosetests(choices = [])
3333
"nullable", "meta", "stacktraces", "profile", "libgit2", "docs",
3434
"markdown", "base64", "serialize", "misc", "threads",
3535
"enums", "cmdlineargs", "i18n", "workspace", "libdl", "int",
36-
"checked", "intset", "floatfuncs", "compile", "parallel", "inline",
36+
"checked", "intset", "floatfuncs", "compile", "distributed", "inline",
3737
"boundscheck", "error", "ambiguous", "cartesian", "asmvariant", "osutils",
3838
"channels"
3939
]
@@ -143,7 +143,7 @@ function choosetests(choices = [])
143143
prepend!(tests, linalgtests)
144144
end
145145

146-
net_required_for = ["socket", "parallel", "libgit2"]
146+
net_required_for = ["socket", "distributed", "libgit2"]
147147
net_on = true
148148
try
149149
ipa = getipaddr()
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is a part of Julia. License is MIT: http://julialang.org/license
22

3-
# Run the parallel test outside of the main driver since it needs its own
3+
# Run the distributed test outside of the main driver since it needs its own
44
# set of dedicated workers.
55

66
inline_flag = Base.JLOptions().can_inline == 1 ? `` : `--inline=no`
@@ -11,8 +11,8 @@ elseif Base.JLOptions().code_coverage == 2
1111
cov_flag = `--code-coverage=all`
1212
end
1313

14-
cmd = `$(Base.julia_cmd()) $inline_flag $cov_flag --check-bounds=yes --startup-file=no --depwarn=error parallel_exec.jl`
14+
cmd = `$(Base.julia_cmd()) $inline_flag $cov_flag --check-bounds=yes --startup-file=no --depwarn=error distributed_exec.jl`
1515

1616
if !success(pipeline(cmd; stdout=STDOUT, stderr=STDERR)) && ccall(:jl_running_on_valgrind,Cint,()) == 0
17-
error("Parallel test failed, cmd : $cmd")
17+
error("Distributed test failed, cmd : $cmd")
1818
end

test/parallel_exec.jl renamed to test/distributed_exec.jl

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,21 @@ function test_futures_dgc(id)
106106
fid = Base.remoteref_id(f)
107107

108108
# remote value should be deleted after a fetch
109-
@test remotecall_fetch(k->(yield();haskey(Base.Parallel.PGRP.refs, k)), id, fid) == true
109+
@test remotecall_fetch(k->(yield();haskey(Base.Distributed.PGRP.refs, k)), id, fid) == true
110110
@test isnull(f.v) == true
111111
@test fetch(f) == id
112112
@test isnull(f.v) == false
113-
@test remotecall_fetch(k->(yield();haskey(Base.Parallel.PGRP.refs, k)), id, fid) == false
113+
@test remotecall_fetch(k->(yield();haskey(Base.Distributed.PGRP.refs, k)), id, fid) == false
114114

115115

116116
# if unfetched, it should be deleted after a finalize
117117
f = remotecall(myid, id)
118118
fid = Base.remoteref_id(f)
119-
@test remotecall_fetch(k->(yield();haskey(Base.Parallel.PGRP.refs, k)), id, fid) == true
119+
@test remotecall_fetch(k->(yield();haskey(Base.Distributed.PGRP.refs, k)), id, fid) == true
120120
@test isnull(f.v) == true
121121
finalize(f)
122-
Base.Parallel.flush_gc_msgs()
123-
@test remotecall_fetch(k->(yield();haskey(Base.Parallel.PGRP.refs, k)), id, fid) == false
122+
Base.Distributed.flush_gc_msgs()
123+
@test remotecall_fetch(k->(yield();haskey(Base.Distributed.PGRP.refs, k)), id, fid) == false
124124
end
125125

126126
test_futures_dgc(id_me)
@@ -136,22 +136,22 @@ fstore = RemoteChannel(wid2)
136136
put!(fstore, f)
137137

138138
@test fetch(f) == wid1
139-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, fid) == true
139+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, fid) == true
140140
remotecall_fetch(r->fetch(fetch(r)), wid2, fstore)
141-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, fid) == false
141+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, fid) == false
142142

143143
# put! should release remote reference since it would have been cached locally
144144
f = Future(wid1)
145145
fid = Base.remoteref_id(f)
146146

147147
# should not be created remotely till accessed
148-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, fid) == false
148+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, fid) == false
149149
# create it remotely
150150
isready(f)
151151

152-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, fid) == true
152+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, fid) == true
153153
put!(f, :OK)
154-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, fid) == false
154+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, fid) == false
155155
@test fetch(f) == :OK
156156

157157
# RemoteException should be thrown on a put! when another process has set the value
@@ -162,7 +162,7 @@ fstore = RemoteChannel(wid2)
162162
put!(fstore, f) # send f to wid2
163163
put!(f, :OK) # set value from master
164164

165-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, fid) == true
165+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, fid) == true
166166

167167
testval = remotecall_fetch(wid2, fstore) do x
168168
try
@@ -185,12 +185,12 @@ function test_remoteref_dgc(id)
185185
rrid = Base.remoteref_id(rr)
186186

187187
# remote value should be deleted after finalizing the ref
188-
@test remotecall_fetch(k->(yield();haskey(Base.Parallel.PGRP.refs, k)), id, rrid) == true
188+
@test remotecall_fetch(k->(yield();haskey(Base.Distributed.PGRP.refs, k)), id, rrid) == true
189189
@test fetch(rr) == :OK
190-
@test remotecall_fetch(k->(yield();haskey(Base.Parallel.PGRP.refs, k)), id, rrid) == true
190+
@test remotecall_fetch(k->(yield();haskey(Base.Distributed.PGRP.refs, k)), id, rrid) == true
191191
finalize(rr)
192-
Base.Parallel.flush_gc_msgs()
193-
@test remotecall_fetch(k->(yield();haskey(Base.Parallel.PGRP.refs, k)), id, rrid) == false
192+
Base.Distributed.flush_gc_msgs()
193+
@test remotecall_fetch(k->(yield();haskey(Base.Distributed.PGRP.refs, k)), id, rrid) == false
194194
end
195195
test_remoteref_dgc(id_me)
196196
test_remoteref_dgc(id_other)
@@ -204,12 +204,12 @@ rrid = Base.remoteref_id(rr)
204204
fstore = RemoteChannel(wid2)
205205
put!(fstore, rr)
206206

207-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, rrid) == true
208-
finalize(rr); Base.Parallel.flush_gc_msgs() # finalize locally
209-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, rrid) == true
210-
remotecall_fetch(r->(finalize(take!(r)); Base.Parallel.flush_gc_msgs(); nothing), wid2, fstore) # finalize remotely
207+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, rrid) == true
208+
finalize(rr); Base.Distributed.flush_gc_msgs() # finalize locally
209+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, rrid) == true
210+
remotecall_fetch(r->(finalize(take!(r)); Base.Distributed.flush_gc_msgs(); nothing), wid2, fstore) # finalize remotely
211211
sleep(0.5) # to ensure that wid2 messages have been executed on wid1
212-
@test remotecall_fetch(k->haskey(Base.Parallel.PGRP.refs, k), wid1, rrid) == false
212+
@test remotecall_fetch(k->haskey(Base.Distributed.PGRP.refs, k), wid1, rrid) == false
213213

214214
@test fetch(@spawnat id_other myid()) == id_other
215215
@test (@fetchfrom id_other myid()) == id_other
@@ -669,7 +669,7 @@ let ex
669669
end
670670

671671
# pmap tests. Needs at least 4 processors dedicated to the below tests. Which we currently have
672-
# since the parallel tests are now spawned as a separate set.
672+
# since the distributed tests are now spawned as a separate set.
673673

674674
# Test all combinations of pmap keyword args.
675675
pmap_args = [
@@ -770,7 +770,7 @@ end
770770
n = 10
771771
as = [rand(4,4) for i in 1:n]
772772
bs = deepcopy(as)
773-
cs = collect(Base.Parallel.pgenerate(x->(sleep(rand()*0.1); svdfact(x)), bs))
773+
cs = collect(Base.Distributed.pgenerate(x->(sleep(rand()*0.1); svdfact(x)), bs))
774774
svdas = map(svdfact, as)
775775
for i in 1:n
776776
@test cs[i][:U] svdas[i][:U]
@@ -921,7 +921,7 @@ if DoFullTest
921921
all_w = workers()
922922
# Test sending fake data to workers. The worker processes will print an
923923
# error message but should not terminate.
924-
for w in Base.Parallel.PGRP.workers
924+
for w in Base.Distributed.PGRP.workers
925925
if isa(w, Base.Worker)
926926
s = connect(get(w.config.host), get(w.config.port))
927927
write(s, randstring(32))
@@ -1195,7 +1195,7 @@ function get_remote_num_threads(processes_added)
11951195
end
11961196

11971197
function test_blas_config(pid, expected)
1198-
for worker in Base.Parallel.PGRP.workers
1198+
for worker in Base.Distributed.PGRP.workers
11991199
if worker.id == pid
12001200
@test get(worker.config.enable_threaded_blas) == expected
12011201
return
@@ -1380,7 +1380,7 @@ wrapped_var_ser_tests()
13801380
global ids_cleanup = ones(6)
13811381
global ids_func = ()->ids_cleanup
13821382

1383-
clust_ser = (Base.Parallel.worker_from_id(id_other)).w_serializer
1383+
clust_ser = (Base.Distributed.worker_from_id(id_other)).w_serializer
13841384
@test remotecall_fetch(ids_func, id_other) == ids_cleanup
13851385

13861386
@test haskey(clust_ser.glbs_sent, object_id(ids_cleanup))
@@ -1389,7 +1389,7 @@ finalize(ids_cleanup)
13891389

13901390
# TODO Add test for cleanup from `clust_ser.glbs_in_tnobj`
13911391

1392-
# reported github issues - Mostly tests with globals and various parallel macros
1392+
# reported github issues - Mostly tests with globals and various distributed macros
13931393
#2669, #5390
13941394
v2669=10
13951395
@test fetch(@spawn (1+v2669)) == 11

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ function move_to_node1(t)
3131
end
3232
# Base.compile only works from node 1, so compile test is handled specially
3333
move_to_node1("compile")
34-
# In a constrained memory environment, run the parallel test after all other tests
34+
# In a constrained memory environment, run the "distributed" test after all other tests
3535
# since it starts a lot of workers and can easily exceed the maximum memory
36-
max_worker_rss != typemax(Csize_t) && move_to_node1("parallel")
36+
max_worker_rss != typemax(Csize_t) && move_to_node1("distributed")
3737

3838
cd(dirname(@__FILE__)) do
3939
n = 1

0 commit comments

Comments
 (0)