Fix the maxgsize computation for 64-bit devices.
Fix inverted order of local and global size for GpuKernel.__call__ (which is the reason why reduction didn't work.
Compile cuda kernels with debugging info in the debug version of the library.
Remove useless var in stage2 kernel; also silences cuda warnings about it.