git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2008 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ae05311c33
commit
b82741d5a6
1 changed files with 3 additions and 6 deletions
|
|
@ -39,7 +39,7 @@
|
|||
#include <cutil.h>
|
||||
|
||||
/**
|
||||
* class for allocation data on GPU global memory
|
||||
* class for Desallocation of data from GPU global memory
|
||||
*/
|
||||
|
||||
template<typename T>
|
||||
|
|
@ -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");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue