Hi,
to find out which cuda release is available for Linux we try to load one of these shared libraries:
libnvrtc.so.9.2
libnvrtc.so.10.0
libnvrtc.so.10.1
libnvrtc.so.10.2
If we can load one of them we know which cuda version is installed and use that.