Skip to content

Commit 9d87d51

Browse files
authored
Free srcBuffer and dstBuffer in Distributed::allToAllImpl (#20)
1 parent 7e7031c commit 9d87d51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csrc/core/distributed.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@ void DistributedNVSHMEM::allToAllImpl(const void *input, void *output, size_t si
2727
nvshmem_quiet();
2828

2929
CUDACHECK(cudaMemcpy(output, dstBuffer, size * count, cudaMemcpyDeviceToHost));
30+
31+
nvshmem_free(dstBuffer);
32+
nvshmem_free(srcBuffer);
3033
}

0 commit comments

Comments
 (0)