I have compiled some information regarding which CUDA version would be most compatible with the Slicer factory build machines.
Windows (overload.kitware)
The web page says both VS2013 and VS2015 installed. I assume the latter is used to build slicer. All CUDA versions 8.0 to 10.1 support VS 2015 on Windows 7.
Linux (metroplex.kitware)
No gcc version is given on the web site. CUDA 8.0 recommends gcc 4.8.2, CUDA 9.0-10.1 recommend gcc 4.8.5.
MacOS (factory-south.kitware)
No CUDA version supports the combination of OSX 10.11 and LLVM 8.0.0. The closest match is CUDA 8.0, which supports 10.11 with LLVM 7.2 and 10.12 with LLVM 8.0.0. Probably it will work, but can’t be certain.
Other considerations:
CUDA 8.0 is the last version which supports Fermi (compute capability 2.x), it supports Volta (7.0) and Turing (7.5) through PTX JIT only. CUDA 9.0 adds native support for Volta (7.0), Turing (7.5) supported through PTX only. CUDA 10.0 adds native support for Turing (7.5).
Refs:
[1] https://www.slicer.org/wiki/Documentation/Nightly/Developers/Factory
[2] https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
[3] https://docs.nvidia.com/cuda/archive/
[4] https://docs.nvidia.com/deploy/cuda-compatibility/