Fix AMD support