Add AMD support.
Merge pull request #50 from alejandrogarciaiglesias/amd

Add AMD support