add AMD support.