add Event free.

This commit is contained in:
Gautier Wojda 2019-04-08 15:44:23 +02:00
parent 1abc294982
commit 57fe1dfbe9

View File

@ -364,6 +364,7 @@ void cudaGraphsUsingStreamCapture(float *inputVec_h, float *inputVec_d,
checkCudaErrors(cudaStreamDestroy(stream1)); checkCudaErrors(cudaStreamDestroy(stream1));
checkCudaErrors(cudaStreamDestroy(stream2)); checkCudaErrors(cudaStreamDestroy(stream2));
checkCudaErrors(cudaStreamDestroy(streamForGraph)); checkCudaErrors(cudaStreamDestroy(streamForGraph));
checkCudaErrors(cudaEventDestroy(reduceKernelEvent));
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {