Annotate sequential::max_element with __host__ __device__.
Use preincrement rather than postincrement