Skip to content

Commit 009d35b

Browse files
authored
Fix device (#2552)
1 parent 9050ef0 commit 009d35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/distributed/public_api.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Backend Agnostic API to perform an allreduce operation on the given buffer `send
132132
workers.
133133
"""
134134
function allreduce!(backend::AbstractFluxDistributedBackend, sendrecvbuf, op::F) where {F}
135-
return __allreduce!(backend, sendrecvbuf, op, gpu_device())
135+
return __allreduce!(backend, sendrecvbuf, op, get_device(sendrecvbuf))
136136
end
137137

138138
function allreduce!(

0 commit comments

Comments
 (0)