Bug 5952280: Add cuModuleUnload(Module) to release resource for 6 samples

This commit is contained in:
Shawn Zeng
2026-03-10 16:05:27 +08:00
parent 5cf83b5a98
commit e32d17e67e
6 changed files with 11 additions and 4 deletions

View File

@@ -211,6 +211,7 @@ int CleanupNoFailure()
free(h_C);
}
checkCudaErrors(cuModuleUnload(cuModule));
checkCudaErrors(cuCtxDestroy(cuContext));
return EXIT_SUCCESS;