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

add AMD support