Enable CUDA's adjacent_difference algorithm in __device__ code.
Test adjacent_difference with thrust::device in __device__ code.