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
4a8dcf8d
Commit
4a8dcf8d
authored
May 13, 2022
by
Florian Fischer
Browse files
fetch emper repo before building client and build with stats_all
parent
83e664e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
bench/emper.py
View file @
4a8dcf8d
...
...
@@ -696,7 +696,8 @@ def build_emper(emper_dir, meson_options='', build_env=None):
build_env
.
update
({
'CFLAGS'
:
'-g'
,
'CXXFLAGS'
:
'-g'
})
meson_env
=
prepare_env
(
build_env
)
common_options
=
'-Dstats=true --buildtype=release --fatal-meson-warnings'
stats_options
=
'-Dstats=true -Dstats_all=true -Dstats_stack_usage=disabled'
common_options
=
f
'
{
stats_options
}
--buildtype=release --fatal-meson-warnings'
build_cmd
=
f
'meson build
{
common_options
}
{
meson_options
}
'
cmd_run
(
build_cmd
,
log
,
cwd
=
emper_dir
,
env
=
meson_env
)
...
...
@@ -711,8 +712,10 @@ def get_commit_id(repo=REPO, commit_ish='HEAD') -> str:
return
subprocess
.
check_output
(
cmd
.
split
(),
cwd
=
repo
,
text
=
True
)[:
-
1
]
def
prepare_client
(
data_dir
:
Path
):
def
prepare_client
(
data_dir
:
Path
,
fetch
=
True
):
"""Prepare and build the special emper variant for the client"""
if
fetch
:
repo_fetch
()
client_checkout
=
get_commit_id
(
REPO
,
CLIENT_CHECKOUT
)
with
open
(
data_dir
/
'desc.yml'
,
'a'
,
encoding
=
'utf-8'
)
as
desc_file
:
...
...
eval.py
View file @
4a8dcf8d
...
...
@@ -420,7 +420,7 @@ if __name__ == '__main__':
write_desc
(
DATA_DIR
)
if
args
.
client_impl
==
'emper'
:
emper
.
prepare_client
(
DATA_DIR
)
emper
.
prepare_client
(
DATA_DIR
,
fetch
=
not
args
.
no_fetch
)
# generate selected emper flavors
if
'emper'
in
args
.
implementations
:
...
...
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