Ensure copy_n works with variable-sized groups
Don't use CUDA-isms or too much Thrust stuff in the sum example