Update 

add amd supported
Merge pull request #4 from houfeng0923/master

add AMD support by checking for `define`