Test scatter algorithms with thrust::device in __device__ code.