def get_cudart():
    if platform.system() == 'Windows':
        arch = platform.architecture()[0]
        for ver in range(90,50,-5):
            cudart = get_library('cudart%s_%d.dll' % (arch[:2], ver))
            if cudart is not None:
                return cudart
    else:
        for name in (
                'libcudart.so.7.0',
                'libcudart.so.7.5',
                'libcudart.so.8.0',
                'libcudart.so'):
            cudart = get_library(name)
            if cudart is not None:
                return cudart
    return None
Return the ctypes.DLL object for cudart or None
dataset/ETHPy150Open NVIDIA/DIGITS/digits/device_query.py/get_cudart