From: Szilárd Páll Date: Wed, 16 Jan 2013 23:57:42 +0000 (+0100) Subject: added missing cleanup of some nbnxn_cuda data X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=e5e150e7ea1d02cf047f73fa00e17fe4f1edf2ed;p=alexxy%2Fgromacs.git added missing cleanup of some nbnxn_cuda data While the content of the data structures the pointers in nbnxn_cuda point to was freed up, the data structures themselves were not. Change-Id: Icb1c5da9867ee252e2a6dadf7f164d7bb4f41a26 --- diff --git a/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu b/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu index 251c6d9c03..f9f9bfa2c3 100644 --- a/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu +++ b/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu @@ -862,6 +862,17 @@ void nbnxn_cuda_free(FILE *fplog, nbnxn_cuda_ptr_t cu_nb) cu_free_buffered(plist_nl->excl, &plist_nl->nexcl, &plist->excl_nalloc); } + sfree(atdat); + sfree(nbparam); + sfree(plist); + if (cu_nb->bUseTwoStreams) + { + sfree(plist_nl); + } + sfree(timers); + sfree(cu_nb->timings); + sfree(cu_nb); + if (debug) { fprintf(debug, "Cleaned up CUDA data structures.\n");