diff --git a/src/cpp/ipc_cuda.cpp b/src/cpp/ipc_cuda.cpp index b9216c27..5a82dabd 100644 --- a/src/cpp/ipc_cuda.cpp +++ b/src/cpp/ipc_cuda.cpp @@ -5,6 +5,9 @@ #include static void deleteDLManagedTensor(DLManagedTensor *self) { + return; + /* + Allocate once, deallocate once. (On exit) cudaError_t err = cudaIpcCloseMemHandle(self->dl_tensor.data); if (err != cudaSuccess) { fprintf(stderr, "Failed to close CUDA IPC handle: %s\n", cudaGetErrorString(err)); @@ -14,6 +17,7 @@ static void deleteDLManagedTensor(DLManagedTensor *self) { fflush(stderr); free(self->dl_tensor.shape); free(self); + */ } DLManagedTensor *