tadded forgotten cudaFree calls to darcy arrays - sphere - GPU-based 3D discret… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 5522a23730aa7f8900d1f12626545a65d0ae3493 | |
parent e8349adf5fdea29e043c8951088378de93ad5c71 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 21 Oct 2013 14:38:30 +0200 | |
added forgotten cudaFree calls to darcy arrays | |
Diffstat: | |
M src/device.cu | 13 +++++++++++++ | |
1 file changed, 13 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/device.cu b/src/device.cu | |
t@@ -374,6 +374,19 @@ __host__ void DEM::freeGlobalDeviceMemory() | |
cudaFree(dev_v_rho); | |
#endif | |
+#ifdef DARCY_GPU | |
+ cudaFree(dev_d_H); | |
+ cudaFree(dev_d_H_new); | |
+ cudaFree(dev_d_V); | |
+ cudaFree(dev_d_dH); | |
+ cudaFree(dev_d_K); | |
+ cudaFree(dev_d_T); | |
+ cudaFree(dev_d_Ss); | |
+ cudaFree(dev_d_W); | |
+ cudaFree(dev_d_phi); | |
+#endif | |
+ | |
+ | |
checkForCudaErrors("During cudaFree calls"); | |
if (verbose == 1) |