File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 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)
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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments