git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2007 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
5474152018
commit
ae05311c33
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ public:
|
||||||
void operator()(T* & _data, unsigned _dataSize) {
|
void operator()(T* & _data, unsigned _dataSize) {
|
||||||
|
|
||||||
//Allocate data in GPU memory
|
//Allocate data in GPU memory
|
||||||
CUDA_SAFE_CALL(cudaMalloc((void**) & _data, _dataSize * sizeof(T)));
|
CUDA_SAFE_CALL(cudaMalloc((void**) &_data, _dataSize * sizeof(T)));
|
||||||
|
|
||||||
// Check if data allocation was failed
|
// Check if data allocation was failed
|
||||||
CUT_CHECK_ERROR("Allocation of data on GPU global memory failed");
|
CUT_CHECK_ERROR("Allocation of data on GPU global memory failed");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue