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

@@ -297,6 +297,7 @@ void runTest(int argc, char **argv)
free(image_path);
free(ref_path);
checkCudaErrors(cuModuleUnload(cuModule));
checkCudaErrors(cuCtxDestroy(cuContext));
exit(bTestResults ? EXIT_SUCCESS : EXIT_FAILURE);