added AMD support
Merge pull request #2 from firede/master

添加AMD支持