|
| 1 | +# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) |
| 2 | +# ReFrame Project Developers. See the top-level LICENSE file for details. |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: BSD-3-Clause |
| 5 | + |
| 6 | +# |
| 7 | +# Minimal CSCS configuration for testing the Torque backend |
| 8 | +# |
| 9 | + |
| 10 | + |
| 11 | +class ReframeSettings: |
| 12 | + job_poll_intervals = [1, 2, 3] |
| 13 | + job_submit_timeout = 60 |
| 14 | + checks_path = ['checks/'] |
| 15 | + checks_path_recurse = True |
| 16 | + site_configuration = { |
| 17 | + 'systems': { |
| 18 | + 'dom': { |
| 19 | + 'descr': 'Dom TDS', |
| 20 | + 'hostnames': ['dom'], |
| 21 | + 'modules_system': 'tmod', |
| 22 | + 'resourcesdir': '/apps/common/UES/reframe/resources', |
| 23 | + 'partitions': { |
| 24 | + 'login': { |
| 25 | + 'scheduler': 'local', |
| 26 | + 'modules': [], |
| 27 | + 'access': [], |
| 28 | + 'environs': ['PrgEnv-cray', 'PrgEnv-gnu', |
| 29 | + 'PrgEnv-intel', 'PrgEnv-pgi'], |
| 30 | + 'descr': 'Login nodes', |
| 31 | + 'max_jobs': 4 |
| 32 | + }, |
| 33 | + |
| 34 | + 'gpu': { |
| 35 | + 'scheduler': 'torque+mpiexec', |
| 36 | + 'modules': ['daint-gpu'], |
| 37 | + 'access': ['-l proc=gpu'], |
| 38 | + 'environs': ['PrgEnv-cray', 'PrgEnv-gnu', |
| 39 | + 'PrgEnv-intel', 'PrgEnv-pgi'], |
| 40 | + 'descr': 'Hybrid nodes (Haswell/P100)', |
| 41 | + 'max_jobs': 100, |
| 42 | + }, |
| 43 | + |
| 44 | + 'mc': { |
| 45 | + 'scheduler': 'torque+mpiexec', |
| 46 | + 'modules': ['daint-mc'], |
| 47 | + 'access': ['-l proc=mc'], |
| 48 | + 'environs': ['PrgEnv-cray', 'PrgEnv-gnu', |
| 49 | + 'PrgEnv-intel', 'PrgEnv-pgi'], |
| 50 | + 'descr': 'Multicore nodes (Broadwell)', |
| 51 | + 'max_jobs': 100, |
| 52 | + }, |
| 53 | + } |
| 54 | + }, |
| 55 | + |
| 56 | + 'generic': { |
| 57 | + 'descr': 'Generic example system', |
| 58 | + 'partitions': { |
| 59 | + 'login': { |
| 60 | + 'scheduler': 'local', |
| 61 | + 'modules': [], |
| 62 | + 'access': [], |
| 63 | + 'environs': ['builtin-gcc'], |
| 64 | + 'descr': 'Login nodes' |
| 65 | + } |
| 66 | + } |
| 67 | + } |
| 68 | + }, |
| 69 | + |
| 70 | + 'environments': { |
| 71 | + '*': { |
| 72 | + 'PrgEnv-cray': { |
| 73 | + 'modules': ['PrgEnv-cray'], |
| 74 | + }, |
| 75 | + |
| 76 | + 'PrgEnv-gnu': { |
| 77 | + 'modules': ['PrgEnv-gnu'], |
| 78 | + }, |
| 79 | + |
| 80 | + 'PrgEnv-intel': { |
| 81 | + 'modules': ['PrgEnv-intel'], |
| 82 | + }, |
| 83 | + |
| 84 | + 'PrgEnv-pgi': { |
| 85 | + 'modules': ['PrgEnv-pgi'], |
| 86 | + }, |
| 87 | + |
| 88 | + 'builtin': { |
| 89 | + 'cc': 'cc', |
| 90 | + 'cxx': '', |
| 91 | + 'ftn': '', |
| 92 | + }, |
| 93 | + |
| 94 | + 'builtin-gcc': { |
| 95 | + 'cc': 'gcc', |
| 96 | + 'cxx': 'g++', |
| 97 | + 'ftn': 'gfortran', |
| 98 | + } |
| 99 | + } |
| 100 | + }, |
| 101 | + } |
| 102 | + |
| 103 | + logging_config = { |
| 104 | + 'level': 'DEBUG', |
| 105 | + 'handlers': [ |
| 106 | + { |
| 107 | + 'type': 'file', |
| 108 | + 'name': 'reframe.log', |
| 109 | + 'level': 'DEBUG', |
| 110 | + 'format': '[%(asctime)s] %(levelname)s: ' |
| 111 | + '%(check_info)s: %(message)s', |
| 112 | + 'append': False, |
| 113 | + }, |
| 114 | + |
| 115 | + # Output handling |
| 116 | + { |
| 117 | + 'type': 'stream', |
| 118 | + 'name': 'stdout', |
| 119 | + 'level': 'INFO', |
| 120 | + 'format': '%(message)s' |
| 121 | + }, |
| 122 | + { |
| 123 | + 'type': 'file', |
| 124 | + 'name': 'reframe.out', |
| 125 | + 'level': 'INFO', |
| 126 | + 'format': '%(message)s', |
| 127 | + 'append': False, |
| 128 | + } |
| 129 | + ] |
| 130 | + } |
| 131 | + |
| 132 | + perf_logging_config = { |
| 133 | + 'level': 'DEBUG', |
| 134 | + 'handlers': [ |
| 135 | + { |
| 136 | + 'type': 'filelog', |
| 137 | + 'prefix': '%(check_system)s/%(check_partition)s', |
| 138 | + 'level': 'INFO', |
| 139 | + 'format': ( |
| 140 | + '%(check_job_completion_time)s|reframe %(version)s|' |
| 141 | + '%(check_info)s|jobid=%(check_jobid)s|' |
| 142 | + 'num_tasks=%(check_num_tasks)s|' |
| 143 | + '%(check_perf_var)s=%(check_perf_value)s|' |
| 144 | + 'ref=%(check_perf_ref)s ' |
| 145 | + '(l=%(check_perf_lower_thres)s, ' |
| 146 | + 'u=%(check_perf_upper_thres)s)' |
| 147 | + ), |
| 148 | + 'datefmt': '%FT%T%:z', |
| 149 | + 'append': True |
| 150 | + } |
| 151 | + ] |
| 152 | + } |
| 153 | + |
| 154 | + |
| 155 | +settings = ReframeSettings() |
0 commit comments