in gpu/find_cuda_config.py [0:0]
def _cartesian_product(first, second): """Returns all path combinations of first and second.""" return [os.path.join(f, s) for f in first for s in second]