forked from EESSI/software-layer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
reframe_config_bot.py.tmpl
64 lines (61 loc) · 2.23 KB
/
reframe_config_bot.py.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# WARNING: this file is intended as template and the __X__ template variables need to be replaced
# before it can act as a configuration file
# Once replaced, this is a config file for running tests after the build phase, by the bot
from eessi.testsuite.common_config import common_logging_config
from eessi.testsuite.constants import * # noqa: F403
site_configuration = {
'systems': [
{
'name': 'BotBuildTests',
'descr': 'Software-layer bot',
'hostnames': ['.*'],
'modules_system': 'lmod',
'partitions': [
{
'name': 'default',
'scheduler': 'local',
'launcher': 'mpirun',
'environs': ['default'],
'features': [
FEATURES[CPU]
] + list(SCALES.keys()),
'processor': {
'num_cpus': __NUM_CPUS__,
'num_sockets': __NUM_SOCKETS__,
'num_cpus_per_core': __NUM_CPUS_PER_CORE__,
'num_cpus_per_socket': __NUM_CPUS_PER_SOCKET__,
},
'resources': [
{
'name': 'memory',
'options': ['--mem={size}'],
}
],
# 'extras': {
# # Make sure to round down, otherwise a job might ask for more mem than is available
# # per node
# 'mem_per_node': __MEM_PER_NODE__,
# },
'max_jobs': 1
}
]
}
],
'environments': [
{
'name': 'default',
'cc': 'cc',
'cxx': '',
'ftn': ''
}
],
'general': [
{
'purge_environment': True,
'resolve_module_conflicts': False, # avoid loading the module before submitting the job
# disable automatic detection of CPU architecture (since we're using local scheduler)
'remote_detect': False,
}
],
'logging': common_logging_config(),
}