a function to see if there is a CUDA device, and another function to use the gpu resizing function if that is the case