Skip to content

Commit

Permalink
MXNet: Fix "mixed" build
Browse files Browse the repository at this point in the history
Signed-off-by: Max H. Gerlach <git@maxgerlach.de>
  • Loading branch information
maxhgerlach committed Jul 22, 2022
1 parent 54f93bc commit 16b472e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horovod/mxnet/mpi_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ extern "C" int horovod_mxnet_reducescatter_async(NDArray* const* inputs,
MX_API_BEGIN();

#if HAVE_CUDA && !HOROVOD_GPU_REDUCESCATTER
if (IsTensorOnCPU(input) && IsTensorOnCPU(output)) {
if (IsTensorOnCPU(inputs[0]) && IsTensorOnCPU(outputs[0])) {
PushHorovodOperation(OperationType::REDUCESCATTER, inputs, outputs, name,
priority, num_tensors, process_set_id, -1, false);
} else {
Expand Down

0 comments on commit 16b472e

Please sign in to comment.