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

@@ -419,6 +419,7 @@ static void childProcess(int devId, int id, char **argv)
// Clean up!
checkCudaErrors(cuStreamDestroy(stream));
checkCudaErrors(cuModuleUnload(cuModule));
checkCudaErrors(cuCtxDestroy(ctx));
// Unmap the allocations from our address space. Unmapping will also free the