Sorry for reopening but I have the same problem. I am on Windows 10, nvidia-smi gives 417.98 and the driver version is the same, while CUDA version is 10.0 and cudnn is 7.0. It used to work properly till recently, so I suppose that something should be updated. My questions are:

What to update to make it work?
How to do it in a safest possible way?
How to proceed in future so that things get updated accordingly to latest demands?