mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-28 14:49:17 +08:00
add Event free.
This commit is contained in:
parent
1abc294982
commit
57fe1dfbe9
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user