use int64 for output device total memory