From e5e150e7ea1d02cf047f73fa00e17fe4f1edf2ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szil=C3=A1rd=20P=C3=A1ll?= Date: Thu, 17 Jan 2013 00:57:42 +0100 Subject: [PATCH] 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 --- src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu | 11 +++++++++++ 1 file changed, 11 insertions(+) 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"); -- 2.22.0