I read CUDA By Example, and I found that when they introduced events, they triggered cudaEventDestroyfor each event they created.
However, I noticed that some later examples neglected this cleanup function. Are there any undesirable side effects associated with forgetting to destroy the created events and threads (i.e., how is a memory leak when you forget to free allocated memory)?
source
share