mirror of
https://github.com/karpathy/llm.c.git
synced 2026-07-28 20:35:09 -04:00
Free up unified buffer mem
This commit is contained in:
parent
1bd737546c
commit
08c055cd72
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ void multi_gpu_config_free(MultiGpuConfig* multi_gpu_config) {
|
|||
ncclCheck(ncclCommDestroy(multi_gpu_config->nccl_comm));
|
||||
cudaCheck(cudaStreamDestroy(multi_gpu_config->nccl_stream));
|
||||
cudaCheck(cudaEventDestroy(multi_gpu_config->compute_nccl_sync));
|
||||
cudaCheck(cudaFree(multi_gpu_config->unified_buffer));
|
||||
mpiCheck(MPI_Finalize());
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue