"Insufficient system resources" after installing K40c

I’m trying to get a K40c card to work with Windows 10. I uninstalled all Nvidia drivers, and then installed the latest Tesla K40c CUDA 10.2 driver ( However in the Device Manager it shows this as the status of the K40c:

This device cannot start. (Code 10)

Insufficient system resources exist to complete the API.

And here is a screenshot of the K40c in the Device Manager:

What could be the problem? My power supply is 750 W so that shouldn’t be an issue. I also installed the K40c into a PCIe 3.0x16 slot.

P.S. The GTX 1660 is connected to the monitor, and I’m not concerned with getting it working right now.

Read this thread: K40 setup on Lenovo P510

SUCCESS!!! I got it to work by turning on UEFI in my BIOS. And I was able to get BOTH cards to work by just installing the latest driver for the GTX 1660. I can now pick which GPU to use when running a PyCUDA program.