def default_uniq_cfg_path(): arch_val = chpl_arch.get('target', map_to_compiler=True, get_lcd=using_chapel_module()).arch return '{0}-{1}-{2}-{3}'.format(chpl_platform.get('target'), chpl_compiler.get('target'), arch_val, chpl_lib_pic.get())
def default_uniq_cfg_path(): cpu_val = chpl_cpu.get('target', map_to_compiler=True, get_lcd=using_chapel_module()).cpu compiler_val = chpl_compiler.get_path_component('target') return '{0}-{1}-{2}-{3}-{4}'.format(chpl_platform.get('target'), chpl_arch.get('target'), cpu_val, compiler_val, chpl_lib_pic.get())
def get(): comm_val = overrides.get('CHPL_COMM') if not comm_val: platform_val = chpl_platform.get('target') compiler_val = chpl_compiler.get('target') # use ugni on cray-x* machines using the module and supported compiler ugni_comp = ('cray-prgenv-gnu', 'cray-prgenv-intel', 'cray-prgenv-cray') if (platform_val.startswith('cray-x') and using_chapel_module() and compiler_val in ugni_comp): comm_val = 'ugni' # automatically uses gasnet when on a cray-x* or cray-cs machine elif platform_val.startswith('cray-'): comm_val = 'gasnet' else: comm_val = 'none' return comm_val
def get(): tasks_val = overrides.get("CHPL_TASKS") if not tasks_val: platform_val = chpl_platform.get("target") compiler_val = chpl_compiler.get("target") # CCE >= 8.4 is required to build qthreads (for gnu style inline asm.) # We build the module with a new enough version so we know the we can # use the qthreads it provides even if the user has an older CCE loaded using_qthreads_incompatible_cce = False if compiler_val == "cray-prgenv-cray": if get_compiler_version(compiler_val) < CompVersion("8.4") and not using_chapel_module(): using_qthreads_incompatible_cce = True if platform_val.startswith("cygwin") or platform_val.startswith("netbsd") or using_qthreads_incompatible_cce: tasks_val = "fifo" else: tasks_val = "qthreads" return tasks_val
def get(flag='host'): platform = chpl_platform.get(flag) arch = chpl_arch.get(flag) (_, cpu) = chpl_cpu.get(flag, map_to_compiler=True, get_lcd=chpl_home_utils.using_chapel_module()) # platform result = platform # compiler is never included since it shouldn't be needed # for a bin/ path. # arch result += '-' + arch # cpu if cpu != 'none' and cpu != 'unknown': result += '-' + cpu return result
def get(flag='host'): platform = chpl_platform.get(flag) machine = chpl_machine.get(flag) (flag, arch) = chpl_arch.get(flag, map_to_compiler=True, get_lcd=chpl_home_utils.using_chapel_module()) # platform result = platform # compiler is never included since it shouldn't be needed # for a bin/ path. # machine result += '-' + machine # arch if arch != 'none' and arch != 'unknown': result += '-' + arch return result
def get(): tasks_val = overrides.get('CHPL_TASKS') if not tasks_val: platform_val = chpl_platform.get('target') compiler_val = chpl_compiler.get('target') # CCE >= 8.4 is required to build qthreads (for gnu style inline asm.) # We build the module with a new enough version so we know the we can # use the qthreads it provides even if the user has an older CCE loaded using_qthreads_incompatible_cce = False if compiler_val == 'cray-prgenv-cray': if (get_compiler_version(compiler_val) < CompVersion('8.4') and not using_chapel_module()): using_qthreads_incompatible_cce = True if (platform_val.startswith('cygwin') or platform_val.startswith('netbsd') or using_qthreads_incompatible_cce): tasks_val = 'fifo' else: tasks_val = 'qthreads' return tasks_val
def get(): tasks_val = overrides.get('CHPL_TASKS') if not tasks_val: platform_val = chpl_platform.get('target') compiler_val = chpl_compiler.get('target') # CCE >= 8.4 is required to build qthreads (for gnu style inline asm.) # We build the module with a new enough version so we know the we can # use the qthreads it provides even if the user has an older CCE loaded using_qthreads_incompatible_cce = False if compiler_val == 'cray-prgenv-cray': if (get_compiler_version(compiler_val) < CompVersion('8.4') and not using_chapel_module()): using_qthreads_incompatible_cce = True if (platform_val.startswith('cygwin') or platform_val.startswith('netbsd') or platform_val.startswith('freebsd') or using_qthreads_incompatible_cce): tasks_val = 'fifo' else: tasks_val = 'qthreads' return tasks_val
def default_uniq_cfg_path(): return '{0}-{1}-{2}'.format( chpl_platform.get('target'), chpl_compiler.get('target'), chpl_arch.get('target', map_to_compiler=True, get_lcd=using_chapel_module()))
def default_uniq_cfg_path(): return '{0}-{1}-{2}'.format(chpl_platform.get('target'), chpl_compiler.get('target'), chpl_arch.get('target', map_to_compiler=True, get_lcd=using_chapel_module()))