Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
manycore
emper-io-eval
Commits
2c184885
Commit
2c184885
authored
Aug 31, 2021
by
Florian Fischer
Browse files
[bench/client] fix remote_cmds for multiple clients
parent
b805b992
Changes
2
Hide whitespace changes
Inline
Side-by-side
bench/client.py
View file @
2c184885
...
...
@@ -130,10 +130,11 @@ def run_remote_clients(cmd: str, out: Path, err: Path, csv: Path,
files
.
extend
([
h_out
,
h_err
,
h_csv
])
r_cmd
=
remote_cmd
.
format
(
host
=
host
)
h_cmd
=
cmd
.
format
(
outfile
=
h_csv
)
clients
.
append
(
Client
(
h_cmd
,
h_out
,
h_err
,
remote_cmd
=
remote_cmd
,
host
=
host
))
clients
.
append
(
Client
(
h_cmd
,
h_out
,
h_err
,
remote_cmd
=
r_cmd
,
host
=
host
))
# await all clients
for
client
in
clients
:
...
...
eval.py
View file @
2c184885
...
...
@@ -118,11 +118,11 @@ def bench(server_cmds) -> EvalResult:
'SERVER'
:
server_name
}
remote_cmd
=
None
if
REMOTE_CMD
:
remote_cmd
=
REMOTE_CMD
.
format
(
host
=
HOST
,
ssh_port
=
SSH_PORT
)
remote_cmd
=
None
if
not
REMOTE_CMD
else
REMOTE_CMD
.
format
(
host
=
'{host}'
,
ssh_port
=
SSH_PORT
)
if
remote_cmd
:
# make sure the benchdir is available on the HOST
remote_prepare_cmd
=
f
'
{
remote_cmd
}
mkdir -p
{
bench_dir
}
'
remote_prepare_cmd
=
f
'
{
remote_cmd
.
format
(
host
=
HOST
)
}
mkdir -p
{
bench_dir
}
'
cmd_run
(
remote_prepare_cmd
,
log
)
measure_cmd
=
MEASURE_CMD
.
format
(
**
substitutions
)
...
...
Write
Preview
Supports
Markdown
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