

def _get_closest_arch(self, arch):
    res = self._known_arch[0]
    for potential in self._known_arch:
        if (arch >= potential):
            res = potential
    return res

dataset/ETHPy150Open numba/numba/numba/cuda/cudadrv/nvvm.py LibDevice._get_closest_arch/original