fix sample, seems gpu is not working