Changed 'try gpuDevice' to 'if gpuDeviceCount'