mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-26 06:38:16 +08:00
Bug 5952280: Add cuModuleUnload(Module) to release resource for 6 samples
This commit is contained in:
@@ -211,6 +211,7 @@ int CleanupNoFailure()
|
||||
free(h_C);
|
||||
}
|
||||
|
||||
checkCudaErrors(cuModuleUnload(cuModule));
|
||||
checkCudaErrors(cuCtxDestroy(cuContext));
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user