git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2006 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
bb9c1c8ae5
commit
5474152018
1 changed files with 2 additions and 2 deletions
|
|
@ -63,9 +63,9 @@ 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 successfuly done
|
// 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