Add AMD support

fix coding style