I just installed the version 375.20 driver for my GTX 1050 Ti graphics card on Ubuntu 16.04 with difficulty for my ASUS E3 Pro Gaming V5 mainboard. And I had installed the Cuda run(local) file to test the Cuda samples which work fine. So I think the GTX 1050 Ti also support Cuda on your environment of Ubuntu 14.04.
There is a very valuable article for introducing how to install/uninstall Nvidia Driver 375.20 on Ubuntu/Other Linux distributions, and the supported Ubuntu version list includes 14.04. It can truly help for you, please move to the link to see the installation steps.
Remove the older version of Nvidia driver
sudo apt-get purge nvidia*
- Reboot the system
Download the Nvidia Driver 375.20
For 32bit
wget http://us.download.nvidia.com/XFree86/Linux-x86/375.20/NVIDIA-Linux-x86-375.20.run
For 64 bit
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.20/NVIDIA-Linux-x86_64-375.20.run`
Switch to command prompt and stop the running Graphics session.
Press Ctrl+Alt+F1-F6 for switching to command prompt
sudo service lightdm stop
sudo service gdm stop
Give execute permissions to the installer
sudo chmod 755 NVIDIA-Linux-x86_64-375.20.run
Install the Nvidia 375.20 driver
sudo ./NVIDIA-Linux-x86_64-375.20.run
After successfull installation reboot the system.
Following the steps above, I got some issues which you also will meet.
If you have two OS on machine, please disable the Fast Boot
in Windows & BIOS.
If the mainboard enabled Secure Boot
in BIOS, please disable it. If not, the issue about login loop will still happen. The solution is uninstall the driver via press Ctrl+Alt+F1~F6
in the command line and reboot to disable secure boot and reinstall it.
The nvidia driver 367.xx & 370.xx within Cuda run file & apt source not support GTX 1050 Ti, please see the SUPPORTED PRODUCTS
tab of the links. So please install the supported nvidia driver alone, not via cuda installation or apt-get install
for nvidia-367/370.
Hope it helps. Good luck.