Test max_element with thrust::device in __device__ code.
Test max_element with thrust::device in __device__ code.

zhenglaizhang/thrust,dachziegel/thrust,GrimDerp/thrust,arnabgho/thrust,egaburov/thrust,mohamed-ali/thrust,arnabgho/thrust,andrewcorrigan/thrust-multi-permutation-iterator,sdalton1/thrust,sarvex/thrust,zhenglaizhang/thrust,thrust/thrust,Ricardo666666/thrust,zeryx/thrust,mohamed-ali/thrust,andrewcorrigan/thrust-multi-permutation-iterator,mohamed-ali/thrust,xiongzhanblake/thrust_src,marksantos/thrust,xiongzhanblake/thrust,xiongzhanblake/thrust,thvasilo/thrust,jaredhoberock/thrust,sdalton1/thrust,dachziegel/thrust,sdalton1/thrust,zeryx/thrust,jaredhoberock/thrust,thrust/thrust,GrimDerp/thrust,jaredhoberock/thrust,raygit/thrust,raygit/thrust,egaburov/thrust,GrimDerp/thrust,raygit/thrust,zhenglaizhang/thrust,sarvex/thrust,xiongzhanblake/thrust_src,sarvex/thrust,andrewcorrigan/thrust-multi-permutation-iterator,Ricardo666666/thrust,zeryx/thrust,thrust/thrust,xiongzhanblake/thrust_src,Ricardo666666/thrust,marksantos/thrust,jaredhoberock/thrust,jaredhoberock/thrust,thrust/thrust,marksantos/thrust,egaburov/thrust,thvasilo/thrust,thvasilo/thrust,xiongzhanblake/thrust,dachziegel/thrust,thrust/thrust,arnabgho/thrust