added amd support
Merge pull request #1 from andrew-makarenko/master

added amd support