From 57fe1dfbe9f5c436a4bb931883eef07110e5393b Mon Sep 17 00:00:00 2001 From: Gautier Wojda Date: Mon, 8 Apr 2019 15:44:23 +0200 Subject: [PATCH] add Event free. --- Samples/simpleCudaGraphs/simpleCudaGraphs.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/Samples/simpleCudaGraphs/simpleCudaGraphs.cu b/Samples/simpleCudaGraphs/simpleCudaGraphs.cu index af6b4eb6..c3f8c1d9 100644 --- a/Samples/simpleCudaGraphs/simpleCudaGraphs.cu +++ b/Samples/simpleCudaGraphs/simpleCudaGraphs.cu @@ -364,6 +364,7 @@ void cudaGraphsUsingStreamCapture(float *inputVec_h, float *inputVec_d, checkCudaErrors(cudaStreamDestroy(stream1)); checkCudaErrors(cudaStreamDestroy(stream2)); checkCudaErrors(cudaStreamDestroy(streamForGraph)); + checkCudaErrors(cudaEventDestroy(reduceKernelEvent)); } int main(int argc, char **argv) {