Skip to content

Commit d9bd62b

Browse files
authored
Merge pull request #10 from rkkautsar/refactor
Implement yaml for runscript encoding
2 parents 2f36535 + 90589b1 commit d9bd62b

File tree

20 files changed

+1228
-1138
lines changed

20 files changed

+1228
-1138
lines changed

.gitmodules

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
[submodule "submodules/runsolver"]
2-
path = submodules/runsolver
1+
[submodule "external-tools/runsolver"]
2+
path = external-tools/runsolver
33
url = [email protected]:daajoe/runsolver.git
4+
ignore = dirty
5+

Pipfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ verify_ssl = true
88
[packages]
99
lxml = "*"
1010
jinja2 = "*"
11+
pyyaml = "*"
12+
pykwalify = "*"
13+
dotmap = "*"
1114

1215
[requires]
1316
python_version = "3"

Pipfile.lock

Lines changed: 54 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchmarks/.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
*
22

33
!*/
4-
!examples/*
54
!.gitignore
65

6+
!examples/*
7+
!examples/**/*
8+
examples/**/output/
9+

benchmarks/examples/clasp/runscript-all.xml

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
base_dir: benchmarks/examples/clasp
2+
output_dir: output
3+
4+
machines:
5+
houat:
6+
7+
memory: 24GB
8+
zuse:
9+
10+
memory: 24GB
11+
12+
configs:
13+
seq-generic:
14+
template: templates/seq-generic.sh
15+
pbs-generic:
16+
template: templates/pbs-generic.sh
17+
18+
systems:
19+
- name: clasp
20+
version: 1.3.2
21+
measures: .resultparsers.clasp
22+
config: seq-generic
23+
settings:
24+
- name: default
25+
tag: seq
26+
cmdline: '--stats 1'
27+
- name: vsids
28+
tag: seq
29+
cmdline: '--stats --heu=vsids 1'
30+
- name: progress
31+
tag: seq
32+
cmdline: '--stats --save-progress 1'
33+
- name: estimate
34+
tag: seq
35+
cmdline: '--stats --estimate 1'
36+
- name: recstr
37+
tag: seq
38+
cmdline: '--stats --recursive-str 1'
39+
- name: nodel
40+
tag: seq
41+
cmdline: '--stats --del=no 1'
42+
- name: norest
43+
tag: seq
44+
cmdline: '--stats --restarts=no 1'
45+
- name: claspar
46+
version: 2.1.0
47+
measures: .resultparsers.claspar
48+
config: pbs-generic
49+
settings:
50+
- name: one-as
51+
tag: par one-as
52+
cmdline: '--stats 1'
53+
ppn: 2
54+
procs: 1 2 4 8
55+
pbstemplate: templates/impi.pbs
56+
- name: all-as
57+
tag: par all-as
58+
cmdline: '--stats -q 0'
59+
ppn: 2
60+
procs: 1 2 4 8
61+
pbstemplate: templates/impi.pbs
62+
63+
jobs:
64+
seq-generic:
65+
type: seq
66+
timeout: 120
67+
runs: 1
68+
parallel: 8
69+
pbs-generic:
70+
type: pbs
71+
timeout: 120
72+
runs: 1
73+
script_mode: timeout
74+
walltime: 23:59:59
75+
76+
benchmarks:
77+
seq-suite:
78+
- type: folder
79+
path: instances
80+
ignore_prefixes:
81+
- pigeons
82+
- type: files
83+
path: instances
84+
files:
85+
- pigeons/pigeonhole10-unsat.lp
86+
- pigeons/pigeonhole11-unsat.lp
87+
pbs-suite:
88+
- type: folder
89+
path: instances
90+
91+
projects:
92+
clasp-big:
93+
job: seq-generic
94+
runtags:
95+
- machine: houat
96+
benchmark: seq-suite
97+
tag: seq
98+
claspar-all-as:
99+
job: pbs-generic
100+
runtags:
101+
- machine: houat
102+
benchmark: pbs-suite
103+
tag: par all-as
104+
claspar-one-as:
105+
job: pbs-generic
106+
runspecs:
107+
- machine: zuse
108+
benchmark: pbs-suite
109+
system: claspar
110+
version: 2.1.0
111+
setting: one-as

benchmarks/examples/sudokusat2019/resultparser.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def sudokuresultparser(root, runspec, instance):
4747
'run': ('int', 0),
4848
'objective': ('int', 0),
4949
'error': ('int', 0),
50-
'status': ('int', -1)
50+
'status': ('int', -1),
51+
'error_str': ('str', ''),
5152
}
5253

5354
instance_str = instance.instance
@@ -122,7 +123,7 @@ def sudokuresultparser(root, runspec, instance):
122123
try:
123124
instance_output = codecs.open(os.path.join(root, 'runsolver.solver'), encoding='utf-8').read()
124125
output_file = os.path.join(root, 'runsolver.solver')
125-
validator = 'benchmarks/sudokusat2019/bin/sudoku_validate-1.0'
126+
validator = 'benchmarks/examples/sudokusat2019/bin/sudoku_validate-1.0'
126127
validator_output = subprocess.check_output("./%s -f %s" % (validator, output_file), shell=True, encoding='utf-8')
127128
except IOError:
128129
sys.stderr.write('Instance %s did not finish properly. Missing output file.\n' % root)

benchmarks/examples/sudokusat2019/runscript.xml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)