summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkazanc <dkazanc@hotmail.com>2020-02-28 15:39:09 +0000
committerdkazanc <dkazanc@hotmail.com>2020-02-28 15:39:09 +0000
commite0eb65274b88625dee7c00758a957cf908f84b40 (patch)
tree51e0ebd8ca6296c3d9b347d0ef75c910130fb4e9
parent422d15c5333e2329324546f94920809dfd2fdcd7 (diff)
downloadregularization-e0eb65274b88625dee7c00758a957cf908f84b40.tar.gz
regularization-e0eb65274b88625dee7c00758a957cf908f84b40.tar.bz2
regularization-e0eb65274b88625dee7c00758a957cf908f84b40.tar.xz
regularization-e0eb65274b88625dee7c00758a957cf908f84b40.zip
cudareset for fgp_tv
-rwxr-xr-xsrc/Core/regularisers_GPU/TV_FGP_GPU_core.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Core/regularisers_GPU/TV_FGP_GPU_core.cu b/src/Core/regularisers_GPU/TV_FGP_GPU_core.cu
index ce2548f..cb8ba37 100755
--- a/src/Core/regularisers_GPU/TV_FGP_GPU_core.cu
+++ b/src/Core/regularisers_GPU/TV_FGP_GPU_core.cu
@@ -593,9 +593,9 @@ extern "C" int TV_FGP_GPU_main(float *Input, float *Output, float *infovector, f
cudaFree(R2);
cudaFree(R3);
}
- //cudaDeviceReset();
/*adding info into info_vector */
infovector[0] = (float)(i); /*iterations number (if stopped earlier based on tolerance)*/
infovector[1] = re; /* reached tolerance */
+ cudaDeviceReset();
return 0;
}