コード例 #1
0
ファイル: chpl_hwloc.py プロジェクト: ravikr126/chapel
def get():
    hwloc_val = overrides.get('CHPL_HWLOC')
    if not hwloc_val:
        tasks_val = chpl_tasks.get()
        if tasks_val == 'qthreads':
            hwloc_val = 'hwloc'
        else:
            hwloc_val = 'none'
    return hwloc_val
コード例 #2
0
ファイル: chpl_hwloc.py プロジェクト: coderbond007/chapel
def get():
    hwloc_val = overrides.get('CHPL_HWLOC')
    if not hwloc_val:
        tasks_val = chpl_tasks.get()
        if tasks_val == 'qthreads':
            hwloc_val = 'hwloc'
        else:
            hwloc_val = 'none'
    return hwloc_val
コード例 #3
0
ファイル: chpl_hwloc.py プロジェクト: tzakian/chapel-old
def get():
    hwloc_val = os.environ.get('CHPL_HWLOC')
    if not hwloc_val:
        tasks_val = chpl_tasks.get()
        arch_val = chpl_arch.get('target')
        if tasks_val == 'qthreads' and arch_val != 'knc':
            hwloc_val = 'hwloc'
        else:
            hwloc_val = 'none'
    return hwloc_val
コード例 #4
0
def get():
    hwloc_val = os.environ.get('CHPL_HWLOC')
    if not hwloc_val:
        tasks_val = chpl_tasks.get()
        arch_val = chpl_arch.get('target', get_lcd=True)
        if tasks_val == 'qthreads' and arch_val != 'knc':
            hwloc_val = 'hwloc'
        else:
            hwloc_val = 'none'
    return hwloc_val
コード例 #5
0
def get():
    hwloc_val = overrides.get('CHPL_HWLOC')
    if not hwloc_val:
        tasks_val = chpl_tasks.get()
        if tasks_val == 'qthreads':
            hwloc_val = 'bundled'
        else:
            hwloc_val = 'none'
    elif hwloc_val == 'hwloc':
        warning("CHPL_HWLOC=hwloc is deprecated. Use CHPL_HWLOC=bundled.")
        hwloc_val = 'bundled'

    return hwloc_val
コード例 #6
0
ファイル: chpl_hwloc.py プロジェクト: vikramgudda/chapel
def get():
    hwloc_val = overrides.get('CHPL_HWLOC')
    if not hwloc_val:
        tasks_val = chpl_tasks.get()
        if tasks_val == 'qthreads':
            hwloc_val = 'bundled'
        else:
            hwloc_val = 'none'
    elif hwloc_val == 'hwloc':
        sys.stderr.write("Warning: CHPL_HWLOC=hwloc is deprecated. "
                         "Use CHPL_HWLOC=bundled instead.\n")
        hwloc_val = 'bundled'

    return hwloc_val
コード例 #7
0
ファイル: chpl_threads.py プロジェクト: AlwaysTraining/chapel
def get():
    if 'CHPL_THREADS' in os.environ:
        stderr.write('Warning: Explicit CHPL_THREADS value ("{0}") is ignored.\n'.format(
                     os.environ['CHPL_THREADS']))
    tasks_val = chpl_tasks.get()
    if tasks_val == 'fifo':
        threads_val = 'pthreads'
    elif tasks_val == 'massivethreads':
        threads_val = 'none'
    elif tasks_val == 'muxed':
        threads_val = 'soft-threads'
    elif tasks_val == 'qthreads':
        threads_val = 'none'
    else:
        stderr.write('Warning: Unexpected tasks value {0}\n'.format(tasks_val))
        threads_val = ''
    return threads_val
コード例 #8
0
ファイル: chpl_threads.py プロジェクト: ShanX3s/chapel
def get():
    if 'CHPL_THREADS' in os.environ:
        stderr.write(
            'Warning: Explicit CHPL_THREADS value ("{0}") is ignored.\n'.
            format(os.environ['CHPL_THREADS']))
    tasks_val = chpl_tasks.get()
    if tasks_val == 'fifo':
        threads_val = 'pthreads'
    elif tasks_val == 'massivethreads':
        threads_val = 'none'
    elif tasks_val == 'muxed':
        threads_val = 'soft-threads'
    elif tasks_val == 'qthreads':
        threads_val = 'none'
    else:
        stderr.write('Warning: Unexpected tasks value {0}\n'.format(tasks_val))
        threads_val = ''
    return threads_val
コード例 #9
0
"""Dimensions this script knows about when compiling chapel. Order determines
how they will show up in the usage and what order is used in interactive mode.
"""
Dimensions = [
    Dimension(
        'comm',
        'CHPL_COMM',
        values=['none', 'gasnet'],
        default=chpl_comm.get(),
        help_text='Chapel communication ({var_name}) value to build.',
    ),
    Dimension(
        'task',
        'CHPL_TASKS',
        values=['fifo', 'qthreads'],
        default=chpl_tasks.get(),
        help_text='Tasks ({var_name}) values to build.',
    ),
    Dimension(
        'mem',
        'CHPL_MEM',
        values=['cstdlib', 'jemalloc'],
        default=chpl_mem.get('target'),
        help_text='Memory allocator ({var_name}) values to build.',
    ),
    Dimension(
        'launcher',
        'CHPL_LAUNCHER',
        values=['none', 'pbs-aprun', 'aprun', 'slurm-srun'],
        default=chpl_launcher.get(),
        help_text='Launcher ({var_name}) to build.',
コード例 #10
0
ファイル: build_configs.py プロジェクト: hildeth/chapel

"""Dimensions this script knows about when compiling chapel. Order determines
how they will show up in the usage and what order is used in interactive mode.
"""
Dimensions = [
    Dimension(
        'comm', 'CHPL_COMM',
        values=['none', 'gasnet'],
        default=chpl_comm.get(),
        help_text='Chapel communcation ({var_name}) value to build.',
    ),
    Dimension(
        'task', 'CHPL_TASKS',
        values=['fifo', 'qthreads'],
        default=chpl_tasks.get(),
        help_text='Tasks ({var_name}) values to build.',
    ),
    Dimension(
        'mem', 'CHPL_MEM',
        values=['cstdlib', 'tcmalloc', 'jemalloc', 'dlmalloc'],
        default=chpl_mem.get('target'),
        help_text='Memory allocator ({var_name}) values to build.',
    ),
    Dimension(
        'launcher', 'CHPL_LAUNCHER',
        values=['none', 'pbs-aprun', 'aprun', 'slurm-srun'],
        default=chpl_launcher.get(),
        help_text='Launcher ({var_name}) to build.',
    ),
    Dimension(