Automatically choose archi