Make AMD-friendly