From 36b97dd5c4ac7361410948c714551a984359a859 Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 29 Sep 2011 15:30:53 +0000 Subject: [PATCH] independant from cutil.h git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2462 331e1502-861f-0410-8da2-ba01fb791d7f --- branches/ParadisEO-GPU/src/memory/moGPUAllocator.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/branches/ParadisEO-GPU/src/memory/moGPUAllocator.h b/branches/ParadisEO-GPU/src/memory/moGPUAllocator.h index 5a01ab4e9..015605775 100644 --- a/branches/ParadisEO-GPU/src/memory/moGPUAllocator.h +++ b/branches/ParadisEO-GPU/src/memory/moGPUAllocator.h @@ -35,9 +35,6 @@ #ifndef __moGPUAllocator_H_ #define __moGPUAllocator_H_ -// CUDA includes -#include - /** * 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)); }