-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 1.11 KB
/
Makefile
File metadata and controls
28 lines (20 loc) · 1.11 KB
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
compile-all: compile-docker compile-apptainer
compile-docker:
docker build -t beluga-docker .
# NOTE: The "latest" tag above is required !!
compile-apptainer:
apptainer build beluga-apptainer.sif docker-daemon://beluga-docker:latest
MAXSWAPS = ""
PBBASE = ""
PBPROPS = ""
# NOTE: Usage: make run-solve-opt MAXSWAPS=5 PBBASE="example_problems/test01a_base.json" PBPROPS="example_problems/test01a_props.json"
run-solve-opt:
apptainer exec beluga-apptainer.sif /usr/src/beluga/beluga.py solve $(MAXSWAPS) $(PBBASE) $(PBPROPS) 1
run-solve:
apptainer exec beluga-apptainer.sif /usr/src/beluga/beluga.py solve $(MAXSWAPS) $(PBBASE) $(PBPROPS) 0
PROPSHARD = "[]" # Should be a list "[propid1, ..., propid2]" of property ids to consider as hard / mandatory
# NOTE: Usage: make run-explain MAXSWAPS=2 PBBASE="example_problems/test02_base.json" PBPROPS="example_problems/test02_props.json"
run-explain:
apptainer exec beluga-apptainer.sif /usr/src/beluga/beluga.py explain $(MAXSWAPS) $(PBBASE) $(PBPROPS) $(PROPSHARD)
run-gen-base-n-props:
apptainer exec beluga-apptainer.sif /usr/src/beluga/beluga.py gen-base-n-props $(PBBASE)