File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,12 @@ function XLA.to_host(buffer::Array, data)
149
149
return nothing
150
150
end
151
151
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
+
152
158
# While some client implementations might support directly copying to host, but we
153
159
# avoid the complexity of supporting that for now.
154
160
single_device_arrays = disassemble_into_single_device_arrays (buffer, true )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ fn_test3(x, y) = x .+ y' .- x
16
16
17
17
ifrt_client = if platform_name == " cpu"
18
18
IFRT. CPUClient (; checkcount= false )
19
- elseif platform_name == " gpu"
19
+ elseif platform_name == " gpu" || platform_name == " cuda "
20
20
IFRT. GPUClient (; checkcount= false )
21
21
elseif platform_name == " tpu"
22
22
IFRT. TPUClient (; checkcount= false )
You can’t perform that action at this time.
0 commit comments