diff --git a/ParadisEO-GPU/src/memory/moCudaAllocator.h b/ParadisEO-GPU/src/memory/moCudaAllocator.h index 68ea0f46b..889c3de6d 100644 --- a/ParadisEO-GPU/src/memory/moCudaAllocator.h +++ b/ParadisEO-GPU/src/memory/moCudaAllocator.h @@ -63,7 +63,7 @@ public: void operator()(T* & _data, unsigned _dataSize) { //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 CUT_CHECK_ERROR("Allocation of data on GPU global memory failed");