 		_alloc.reset(new CudaAllocSimple(device));
 	else
 		_alloc = CreateDefaultAlloc(device);
-	
+
 	if(newStream) cudaStreamCreate(&_stream);
 	_ownStream = newStream;
 
 	// Allocate 4KB of page-locked memory.
-	cudaError_t error = cudaMallocHost((void**)&_pageLocked, 4096);
+	cudaMallocHost((void**)&_pageLocked, 4096);
 
 	// Allocate an auxiliary stream.
-	error = cudaStreamCreate(&_auxStream);
+	cudaStreamCreate(&_auxStream);
 }
 
 CudaContext::~CudaContext() {

	_counter = 0;
}

CudaAllocBuckets::~CudaAllocBuckets() { 
	SetCapacity(0, 0);
	assert(!_allocated);
}

#include "util/mgpucontext.h"

namespace mgpu {

////////////////////////////////////////////////////////////////////////////////
// CudaTimer

