change graphics_device to gpu_device. (need testing)