Skip to content

Commit

Permalink
Fix device
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed Dec 13, 2024
1 parent 9050ef0 commit 885d95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distributed/public_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Backend Agnostic API to perform an allreduce operation on the given buffer `send
workers.
"""
function allreduce!(backend::AbstractFluxDistributedBackend, sendrecvbuf, op::F) where {F}
return __allreduce!(backend, sendrecvbuf, op, gpu_device())
return __allreduce!(backend, sendrecvbuf, op, get_device(sendrecvbuf))

Check warning on line 135 in src/distributed/public_api.jl

View check run for this annotation

Codecov / codecov/patch

src/distributed/public_api.jl#L135

Added line #L135 was not covered by tests
end

function allreduce!(
Expand Down

0 comments on commit 885d95d

Please sign in to comment.