Note that You have to manually turn on the GPU for the first in your nvidia control panel.
In control panel you have an option to auto select when needed, Nvidia gpu and integrated gpu.
select Nvidia GPU.
Because  cuda is not automatically turn on the GPU.