mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-25 22:28:17 +08:00
Bug 5952280: Add cuModuleUnload(Module) to release resource for 6 samples
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user