Skip to content

Commit 586040a

Browse files
committed
Datadeps: Warn that multi-worker multi-GPU is broken
1 parent 6d9da6f commit 586040a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/datadeps.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ function distribute_tasks!(queue::DataDepsTaskQueue)
451451
InvalidScope),
452452
all_procs)
453453
exec_spaces = unique(vcat(map(proc->collect(memory_spaces(proc)), all_procs)...))
454+
if !all(space->space isa CPURAMMemorySpace, exec_spaces) && !all(space->root_worker_id(space) == myid(), exec_spaces)
455+
@warn "Datadeps support for multi-GPU, multi-worker is currently broken\nPlease be prepared for incorrect results or errors" maxlog=1
456+
end
454457

455458
# Round-robin assign tasks to processors
456459
upper_queue = get_options(:task_queue)

0 commit comments

Comments
 (0)