No devices were found - output of "nvidia-smi"

After executing this command “nvidia-smi”, I am getting this output - No devices were found.
How to solve it?

I have tried a lot of ways from the internet and from the nvidia forum but nothing seemed to work.

Can anyone help me out?