mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-24 06:16:38 +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);
|
||||
return {in, out};
|
||||
} else {
|
||||
out.set_data(allocator::malloc(out.nbytes()));
|
||||
return {in, out};
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user