I propose a better option. Since you are using Windows, have you considered forcing the program to start with the NVIDIA GPU? If you are using NVIDIA Optimus (a laptop without a physical switch for switching graphic cards) try this:
Right click on the program that uses CUDA, in the context menu, there is an option named "Run with graphics processor"
and under there choose "High-performance NVIDIA processor"
.
Note that if you are using Visual Studio, you could start Visual Studio with this method. This way, your non-CUDA card will not be visible to the program :-)
Based on my experience if you are trying to do CUDA/OpenGL interop, without this method you will have problems. Sometimes the OpenGL context is created for your non-NVIDIA card and the CUDA context is created on the NVIDIA card, leading to bizarre errors.