On NVIDIA GPUs the device can become uninitialized because of some
kernel failures. Trying to fix this issue.