mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-24 22:36:39 +08:00
Fix allocation bug in NCCL (#2530)
This commit is contained in:
parent
068a4612e9
commit
30561229c7
@ -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};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user