Beispiel #1
0
def get_compile_args():
    args = ([], [])
    libfabric_val = get()
    if libfabric_val == 'bundled':
        ucp_val = get_uniq_cfg_path()
        args = third_party_utils.get_bundled_compile_args('libfabric',
                                                          ucp=ucp_val)
    elif libfabric_val == 'system':
        flags = []

        # Allow overriding pkg-config via LIBFABRIC_DIR, for platforms
        # without pkg-config.
        libfab_dir_val = overrides.get('LIBFABRIC_DIR')
        if libfab_dir_val:
            args[1].append('-I' + libfab_dir_val + '/include')
        else:
            # Try using pkg-config to get the compile-time flags.
            x = third_party_utils.pkgconfig_get_system_compile_args(
                'libfabric')
            args = x

    if libfabric_val == 'system' or libfabric_val == 'bundled':
        flags = []
        launcher_val = chpl_launcher.get()
        ofi_oob_val = overrides.get_environ('CHPL_COMM_OFI_OOB')
        if 'mpi' in launcher_val or (ofi_oob_val and 'mpi' in ofi_oob_val):
            mpi_dir_val = overrides.get_environ('MPI_DIR')
            if mpi_dir_val:
                flags.append('-I' + mpi_dir_val + '/include')

        args[1].extend(flags)

    return args
Beispiel #2
0
def get_compile_args(flag):
    jemalloc_val = get(flag)
    if jemalloc_val == 'bundled':
        ucp_val = get_uniq_cfg_path(flag)
        return third_party_utils.get_bundled_compile_args('jemalloc',
                                                          ucp=ucp_val)
    return ([ ], [ ])
Beispiel #3
0
def get_compile_args():
    hwloc_val = get()
    if hwloc_val == 'bundled':
        ucp_val = get_uniq_cfg_path()
        return third_party_utils.get_bundled_compile_args('hwloc', ucp=ucp_val)

    return ([], [])
Beispiel #4
0
def get_compile_args():
    re2_val = get()
    if re2_val == 'bundled':
        return third_party_utils.get_bundled_compile_args('re2')

    return ([], [])
Beispiel #5
0
def get_compile_args():
    unwind_val = get()
    if unwind_val == 'bundled':
        return third_party_utils.get_bundled_compile_args('libunwind')

    return ([], [])
Beispiel #6
0
def get_compile_args():
    gmp_val = get()
    if gmp_val == 'bundled':
        return third_party_utils.get_bundled_compile_args('gmp')

    return ([], [])
Beispiel #7
0
def get_compile_args():
    ucp_val = get_uniq_cfg_path()
    return third_party_utils.get_bundled_compile_args('qthread', ucp=ucp_val)