add AMD support
Merge pull request #7 from twalker/master

add AMD support