Need to use Intel graphics for display instead of an Nvidia GPU

After installing the nvidia GeForce GTX 1050 Ti/PCIe/SSE2 and drivers for it, the graphics is fully controlled by it. I need it just on demand.ie only for cuda. All other time and for usual display graphics I need to use intel graphics. How can I acheive this.
processor: Intel® Core™ i5-4440S CPU @ 2.80GHz × 4
CPU memory: 16 gb
graphics memory:4gb
nvidia-smi results:
±----------------------------------------------------------------------------+
| NVIDIA-SMI 390.30 Driver Version: 390.30 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 105… Off | 00000000:01:00.0 On | N/A |
| 45% 37C P0 N/A / 75W | 618MiB / 4036MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 7326 G /usr/lib/xorg/Xorg 170MiB |
| 0 10724 G /opt/teamviewer/tv_bin/TeamViewer 1MiB |
| 0 11078 G compiz 73MiB |
| 0 18480 C python 97MiB |
| 0 20531 C python 97MiB |
| 0 20725 C python 97MiB |
| 0 24049 G …-token=FED9B448C825C60B51B7EDD01BB0570F 52MiB |
±----------------------------------------------------------------------------+
All the process are currently running on nvidia memory. Need to use the original CPU memory.