Adds AMD support

Hope this is OK