Added AMD support

Closes #1