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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user