Add _host__ __device__ on a predefined function.