From b82741d5a6142af232d87ea755d62e23cce3294e Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 25 Nov 2010 15:14:16 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2008 331e1502-861f-0410-8da2-ba01fb791d7f --- ParadisEO-GPU/src/memory/moCudaDesallocator.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ParadisEO-GPU/src/memory/moCudaDesallocator.h b/ParadisEO-GPU/src/memory/moCudaDesallocator.h index ce85cfd71..e6b932200 100644 --- a/ParadisEO-GPU/src/memory/moCudaDesallocator.h +++ b/ParadisEO-GPU/src/memory/moCudaDesallocator.h @@ -39,7 +39,7 @@ #include /** - * class for allocation data on GPU global memory + * class for Desallocation of data from GPU global memory */ template @@ -59,14 +59,11 @@ public: *@param _data the data to allocate on GPU global memory */ - void operator()(T* & _data) { + void operator()(T* _data) { - //Allocate data in GPU memory + //Desallocate data from GPU global memory CUDA_SAFE_CALL(cudaFree(_data)); - // Check if data allocation was successfuly done - CUT_CHECK_ERROR("Desallocation of data on GPU global memory failed"); - } /**