Tesla M40 & GTX1080/RTX2070 GPU in same PC?

My workstation currently has a Tesla M40 for compute (loads of memory, works great) and an AMD card for display. I want to ditch the AMD card and replace it with either a used GTX1080ti or a new RTX2070 super.

I know I can only have one Nvidia driver version installed.

Will the Nvidia drivers work with either a GTX1080ti/RTX2070 super and my Tesla M40 in the same PC? My primary OS is Windows 10 but I’m interested in any gotchas that may exist for Ubuntu Linux as well.

Thanks in advance for your knowledge.

Any driver bundled with any recent CUDA toolkit installer (for windows, or linux) should work with both cards installed in the same system.