git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2008 331e1502-861f-0410-8da2-ba01fb791d7f

This commit is contained in:
boufaras 2010-11-25 15:14:16 +00:00
commit b82741d5a6

View file

@ -39,7 +39,7 @@
#include <cutil.h> #include <cutil.h>
/** /**
* class for allocation data on GPU global memory * class for Desallocation of data from GPU global memory
*/ */
template<typename T> template<typename T>
@ -59,14 +59,11 @@ public:
*@param _data the data to allocate on GPU global memory *@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)); CUDA_SAFE_CALL(cudaFree(_data));
// Check if data allocation was successfuly done
CUT_CHECK_ERROR("Desallocation of data on GPU global memory failed");
} }
/** /**