independant from cutil.h
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2462 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
c0efea099a
commit
36b97dd5c4
1 changed files with 1 additions and 7 deletions
|
|
@ -35,9 +35,6 @@
|
|||
#ifndef __moGPUAllocator_H_
|
||||
#define __moGPUAllocator_H_
|
||||
|
||||
// CUDA includes
|
||||
#include <cutil.h>
|
||||
|
||||
/**
|
||||
* class for allocation data on GPU global memory
|
||||
*/
|
||||
|
|
@ -62,10 +59,7 @@ public:
|
|||
void operator()(T* & _data, unsigned _dataSize) {
|
||||
|
||||
//Allocate data in GPU memory
|
||||
CUDA_SAFE_CALL(cudaMalloc((void**) &_data, _dataSize * sizeof(T)));
|
||||
|
||||
// Check if data allocation is failed
|
||||
CUT_CHECK_ERROR("Allocation of data on GPU global memory failed");
|
||||
cudaMalloc((void**) &_data, _dataSize * sizeof(T));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue