Skip to content

Commit 866e7db

Browse files
committed
docs: add warning on distributed cases
1 parent 7fc621e commit 866e7db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/xla/IFRT/Array.jl

+6
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ function XLA.to_host(buffer::Array, data)
149149
return nothing
150150
end
151151

152+
if any(!is_addressable, all_devices)
153+
@warn "Not all devices are addressable. Currently we only fill in the data for \
154+
addressable devices. Remaining slices of data in `data` are left \
155+
untouched."
156+
end
157+
152158
# While some client implementations might support directly copying to host, but we
153159
# avoid the complexity of supporting that for now.
154160
single_device_arrays = disassemble_into_single_device_arrays(buffer, true)

0 commit comments

Comments
 (0)