Enable Thrust algorithms in __device__ code