Added AMD support

Fixes issue #39