add support for AMD
Merge pull request #16 from rayqian/add-amd-support

Add support for AMD (#16, @rayqian)