diff --git a/config/tiger.py b/config/tiger.py new file mode 100644 index 0000000000..bf4b4e7e32 --- /dev/null +++ b/config/tiger.py @@ -0,0 +1,156 @@ +# +# CSCS ReFrame settings +# + + +class ReframeSettings: + job_poll_intervals = [1, 2, 3] + job_submit_timeout = 60 + checks_path = ['checks/'] + checks_path_recurse = True + site_configuration = { + 'systems': { + 'tiger': { + # export SCRATCH=/lus/scratch/$USER + 'descr': 'Cray Tiger', + 'hostnames': ['tiger'], + 'modules_system': 'tmod', + 'resourcesdir': '$HOME/RESOURCES', + 'partitions': { + 'login': { + 'scheduler': 'local', + 'modules': [], + 'access': [], + 'environs': ['PrgEnv-cray', 'PrgEnv-gnu', + 'PrgEnv-intel', 'PrgEnv-pgi'], + 'descr': 'Login nodes', + 'max_jobs': 4 + }, + + 'gpu': { + 'scheduler': 'nativeslurm', + 'modules': ['craype-broadwell'], + 'access': ['--constraint=P100'], + 'environs': ['PrgEnv-cray', 'PrgEnv-gnu', + 'PrgEnv-intel', 'PrgEnv-pgi'], + 'descr': 'Hybrid nodes (Broadwell/P100)', + 'max_jobs': 100, + 'resources': { + 'switches': ['--switches={num_switches}'], + 'mem-per-cpu': ['--mem-per-cpu={mem_per_cpu}'] + } + } + } + }, + + 'generic': { + 'descr': 'Generic example system', + 'partitions': { + 'login': { + 'scheduler': 'local', + 'modules': [], + 'access': [], + 'environs': ['builtin-gcc'], + 'descr': 'Login nodes' + } + } + } + }, + + 'environments': { + '*': { + 'PrgEnv-cray': { + 'type': 'ProgEnvironment', + 'modules': ['PrgEnv-cray'], + }, + + 'PrgEnv-cray_classic': { + 'type': 'ProgEnvironment', + 'modules': ['PrgEnv-cray', 'cce/9.1.0.129-classic'], + }, + + 'PrgEnv-gnu': { + 'type': 'ProgEnvironment', + 'modules': ['PrgEnv-gnu'], + }, + + 'PrgEnv-intel': { + 'type': 'ProgEnvironment', + 'modules': ['PrgEnv-intel'], + }, + + 'PrgEnv-pgi': { + 'type': 'ProgEnvironment', + 'modules': ['PrgEnv-pgi'], + }, + + 'builtin': { + 'type': 'ProgEnvironment', + 'cc': 'cc', + 'cxx': '', + 'ftn': '', + }, + + 'builtin-gcc': { + 'type': 'ProgEnvironment', + 'cc': 'gcc', + 'cxx': 'g++', + 'ftn': 'gfortran', + } + } + }, + + } + + logging_config = { + 'level': 'DEBUG', + 'handlers': [ + { + 'type': 'file', + 'name': 'reframe.log', + 'level': 'DEBUG', + 'format': '[%(asctime)s] %(levelname)s: ' + '%(check_info)s: %(message)s', + 'append': False, + }, + + # Output handling + { + 'type': 'stream', + 'name': 'stdout', + 'level': 'INFO', + 'format': '%(message)s' + }, + { + 'type': 'file', + 'name': 'reframe.out', + 'level': 'INFO', + 'format': '%(message)s', + 'append': False, + } + ] + } + + perf_logging_config = { + 'level': 'DEBUG', + 'handlers': [ + { + 'type': 'filelog', + 'prefix': '%(check_system)s/%(check_partition)s', + 'level': 'INFO', + 'format': ( + '%(asctime)s|reframe %(version)s|' + '%(check_info)s|jobid=%(check_jobid)s|' + '%(check_perf_var)s=%(check_perf_value)s|' + 'ref=%(check_perf_ref)s ' + '(l=%(check_perf_lower_thres)s, ' + 'u=%(check_perf_upper_thres)s)|' + '%(check_perf_unit)s' + ), + 'append': True + } + ] + } + + +settings = ReframeSettings()