Fixed the sample to make use of AMD