Support AMD

// cc @bogdan