add AMD support [fixes #1]