PERF: using cuda::mem{Alloc,Free} instead of cuda{Malloc,Free}
PERF: Improvements to reductions in CUDA and OpenCL
Merge pull request #220 from pavanky/perf

Performance improvements for reductions