mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-19 16:48:10 +08:00
Fix allocation bug in NCCL (#2530)
This commit is contained in:
@@ -24,6 +24,7 @@ void AllReduce::eval_gpu(
|
|||||||
out.copy_shared_buffer(in);
|
out.copy_shared_buffer(in);
|
||||||
return {in, out};
|
return {in, out};
|
||||||
} else {
|
} else {
|
||||||
|
out.set_data(allocator::malloc(out.nbytes()));
|
||||||
return {in, out};
|
return {in, out};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user