Skip to content

Commit 83f07fe

Browse files
committed
docs: add warning on distributed cases
1 parent 7fc621e commit 83f07fe

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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)

test/ifrt/low_level.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn_test3(x, y) = x .+ y' .- x
1616

1717
ifrt_client = if platform_name == "cpu"
1818
IFRT.CPUClient(; checkcount=false)
19-
elseif platform_name == "gpu"
19+
elseif platform_name == "gpu" || platform_name == "cuda"
2020
IFRT.GPUClient(; checkcount=false)
2121
elseif platform_name == "tpu"
2222
IFRT.TPUClient(; checkcount=false)

0 commit comments

Comments
 (0)