forked from guicho271828/latplan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_ama1_all.sh
executable file
·66 lines (50 loc) · 2.69 KB
/
run_ama1_all.sh
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
65
#!/bin/bash
ulimit -v 16000000000
trap exit SIGINT
# Note: AMA1 requires huge memory and runtime for preprocessing.
# For example:
# puzzle instances require 4.5GB per process / 2 hours,
# lightsout instances require 7.5GB per process / 4 hours on Xeon E5-2676 2.4 GHz.
# Each SAS+ file may become over 1GB.
# re: behavior --- The preprocessing results are precious. They are always
# unique for each problem, irregardless of heuristics. However, due to the huge
# memory requirement, it is inefficient to preprocess the same
# problem independently.
#
# Therefore, when a process is preprocessing an instance, other
# instances solving the same instances are waited through a file lock.
#
# Note that even when a fd-planner process is waiting, it consumes nearly 700MB
# for already loaded NN image.
# Desired usage of this script is "./run_ama1_all.sh | parallel -j <number of processes>"
# where the number should be adjusted for the resource capacity on your system.
parallel --dry-run --no-notice --joblog problem-instances/latplan.puzzles.puzzle_mnist.ama1.csv \
"./fd-planner.py {1} {2} {3} > {2}/{1/}_{3}.ama1.log" \
::: samples/puzzle_mnist* \
::: problem-instances/*/latplan.puzzles.puzzle_mnist/* \
::: blind pdb
parallel --dry-run --no-notice --joblog problem-instances/latplan.puzzles.puzzle_mandrill.ama1.csv \
"./fd-planner.py {1} {2} {3} > {2}/{1/}_{3}.ama1.log" \
::: samples/puzzle_mandrill* \
::: problem-instances/*/latplan.puzzles.puzzle_mandrill/* \
::: blind pdb
parallel --dry-run --no-notice --joblog problem-instances/latplan.puzzles.puzzle_spider.ama1.csv \
"./fd-planner.py {1} {2} {3} > {2}/{1/}_{3}.ama1.log" \
::: samples/puzzle_spider* \
::: problem-instances/*/latplan.puzzles.puzzle_spider/* \
::: blind pdb
parallel --dry-run --no-notice --joblog problem-instances/latplan.puzzles.lightsout_digital.ama1.csv \
"./fd-planner.py {1} {2} {3} > {2}/{1/}_{3}.ama1.log" \
::: samples/lightsout_digital* \
::: problem-instances/*/latplan.puzzles.lightsout_digital/* \
::: blind pdb
parallel --dry-run --no-notice --joblog problem-instances/latplan.puzzles.lightsout_twisted.ama1.csv \
"./fd-planner.py {1} {2} {3} > {2}/{1/}_{3}.ama1.log" \
::: samples/lightsout_twisted* \
::: problem-instances/*/latplan.puzzles.lightsout_twisted/* \
::: blind pdb
parallel --dry-run --no-notice --joblog problem-instances/latplan.puzzles.hanoi.ama1.csv \
"./fd-planner.py {1} {2} {3} > {2}/{1/}_{3}.ama1.log" \
::: samples/hanoi* \
::: problem-instances/*/latplan.puzzles.hanoi/* \
::: blind pdb