AMD support

Please Dmitry review this request to add it to master. Very requested support.