Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
2fbfffcb
Commit
2fbfffcb
authored
Sep 21, 2020
by
Antoine Kaufmann
Browse files
experiments: add EXP_RUNNER Makefile variable (for slurm)
parent
4b9e4e14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
experiments/Makefile
experiments/Makefile
+4
-3
No files found.
experiments/Makefile
View file @
2fbfffcb
MQNICMOD
:=
$(
abspath
../images/mqnic/mqnic.ko
)
MQNICMOD
:=
$(
abspath
../images/mqnic/mqnic.ko
)
EXP_RUNNER
?=
bash
GUESTS
:=
\
GUESTS
:=
\
qemu-pair-client
\
qemu-pair-client
\
...
@@ -145,7 +146,7 @@ experiments: $(EXPERIMENTS_READY)
...
@@ -145,7 +146,7 @@ experiments: $(EXPERIMENTS_READY)
define
run_ex_ncp_repl
define
run_ex_ncp_repl
$(OUTDIR)/$(1)/$(2)/ready
:
experiments/$(addsuffix .sh
,
$(1)) $(GUESTS_TARS)
$(OUTDIR)/$(1)/$(2)/ready
:
experiments/$(addsuffix .sh
,
$(1)) $(GUESTS_TARS)
bash
$$
<
$(2)
$(EXP_RUNNER)
$$
<
$(2)
touch
$$
@
touch
$$
@
endef
endef
...
@@ -158,7 +159,7 @@ endef
...
@@ -158,7 +159,7 @@ endef
define
run_ex_cp_repl
define
run_ex_cp_repl
$(OUTDIR)/$(1)/$(2)/ready
:
experiments/$(addsuffix .sh
,
$(1)) $(OUTDIR)/$(1)/checkpoint/ready $(GUESTS_TARS)
$(OUTDIR)/$(1)/$(2)/ready
:
experiments/$(addsuffix .sh
,
$(1)) $(OUTDIR)/$(1)/checkpoint/ready $(GUESTS_TARS)
bash
$$
<
$(2)
$(EXP_RUNNER)
$$
<
$(2)
touch
$$
@
touch
$$
@
endef
endef
...
@@ -166,7 +167,7 @@ define run_ex_cp
...
@@ -166,7 +167,7 @@ define run_ex_cp
$(foreach
i,$(REPLIDS),$(eval
$(call
run_ex_cp_repl,$(1),$(i))))
$(foreach
i,$(REPLIDS),$(eval
$(call
run_ex_cp_repl,$(1),$(i))))
$(OUTDIR)/$(1)/checkpoint/ready
:
experiments/$(addsuffix -mck.sh
,
$(1)) $(GUESTS_TARS)
$(OUTDIR)/$(1)/checkpoint/ready
:
experiments/$(addsuffix -mck.sh
,
$(1)) $(GUESTS_TARS)
bash
$$
<
$(EXP_RUNNER)
$$
<
touch
$$
@
touch
$$
@
$(OUTDIR)/$(1)/ready
:
experiments/$(addsuffix .sh
,
$(1)) $(addprefix $(OUTDIR)/$(1)/
,
$(addsuffix /ready
,
$(REPLIDS)))
$(OUTDIR)/$(1)/ready
:
experiments/$(addsuffix .sh
,
$(1)) $(addprefix $(OUTDIR)/$(1)/
,
$(addsuffix /ready
,
$(REPLIDS)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment