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

add AMD support