We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b97bb commit de78b7fCopy full SHA for de78b7f
src/xla/IFRT/Array.jl
@@ -138,7 +138,8 @@ function XLA.buffer_on_cpu(::Array)
138
end
139
140
function XLA.to_host(buffer::Array, data, reactant_sharding)
141
- if length(XLA.devices(XLA.sharding(buffer))) == 1
+ if is_single_device_sharding(XLA.sharding(buffer)) ||
142
+ is_fully_replicated(XLA.sharding(buffer))
143
GC.@preserve buffer data begin
144
@ccall MLIR.API.mlir_c.ifrt_array_copy_to_host_buffer(
145
buffer.buffer::Ptr{Cvoid}, data::Ptr{Cvoid}
0 commit comments