Test for_each & for_each_n with thrust::seq in __device__ code.