Exemple #1
0
def cmd_clang_all(opts, _):
    """run clang pass on all fs (e.g., 'clang_all)"""

    pool = mp.Pool(mp.cpu_count())
    for fs in fsop.get_fs("C"):
        pool.apply_async(_run_clang, args=(fs, opts.clang))
    pool.close()
    pool.join()

    return 0
Exemple #2
0
def cmd_clang_all(opts, _):
    """run clang pass on all fs (e.g., 'clang_all)"""

    pool = mp.Pool(mp.cpu_count())
    for fs in fsop.get_fs("C"):
        pool.apply_async(_run_clang, args=(fs, opts.clang))
    pool.close()
    pool.join()

    return 0
Exemple #3
0
def cmd_merge_all(opts, _):
    """merge all fs (e.g., 'merge_all')"""

    pool = mp.Pool(mp.cpu_count())
    for fs in fsop.get_fs("M"):
        pool.apply_async(_run_merger, args = (fs, opts.linux))
    pool.close()
    pool.join()

    return 0
Exemple #4
0
def cmd_merge_all(opts, _):
    """merge all fs (e.g., 'merge_all')"""

    pool = mp.Pool(mp.cpu_count())
    for fs in fsop.get_fs("M"):
        pool.apply_async(_run_merger, args=(fs, opts.linux))
    pool.close()
    pool.join()

    return 0