Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
d5f77560
Commit
d5f77560
authored
2 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
data-env: create a module to host related code
parent
21e6cb16
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python-libs/poulpe/benchmarks.py
+7
-6
7 additions, 6 deletions
python-libs/poulpe/benchmarks.py
python-libs/poulpe/dataenvs.py
+6
-0
6 additions, 0 deletions
python-libs/poulpe/dataenvs.py
python-libs/poulpe/runner.py
+2
-2
2 additions, 2 deletions
python-libs/poulpe/runner.py
with
15 additions
and
8 deletions
python-libs/poulpe/benchmarks.py
+
7
−
6
View file @
d5f77560
...
...
@@ -3,8 +3,11 @@
import
subprocess
import
tempfile
from
.
import
basics
as
poulpe
from
.
import
errors
from
.
import
(
basics
as
poulpe
,
dataenvs
as
data_mod
,
errors
,
)
class
UnknownBenchmarkMethod
(
KeyError
):
...
...
@@ -106,8 +109,7 @@
return
all_dimensions
.
copy
()
def
run_one
(
self
,
bin_env_path
,
data_env_path
):
data_env_desc
=
poulpe
.
data_env_file
(
data_env_path
)
data_env_data
=
poulpe
.
get_data
(
data_env_desc
)
data_env_data
=
data_mod
.
get_data_env
(
data_env_path
)
cmd
=
SimpleCommand
(
self
)
cmd
.
apply_data_env
(
data_env_data
)
...
...
@@ -260,8 +262,7 @@
raise
RuntimeError
(
msg
%
perf_ext_path
)
data_env_desc
=
poulpe
.
data_env_file
(
data_env_path
)
data_env_data
=
poulpe
.
get_data
(
data_env_desc
)
data_env_data
=
data_mod
.
get_data_env
(
data_env_path
)
def
data_var
(
key
):
full_key
=
f
'
bench-input-vars.
{
key
}
'
...
...
This diff is collapsed.
Click to expand it.
python-libs/poulpe/dataenvs.py
0 → 100644
+
6
−
0
View file @
d5f77560
from
.
import
basics
def
get_data_env
(
data_env_path
):
data_env_desc
=
basics
.
data_env_file
(
data_env_path
)
return
basics
.
get_data
(
data_env_desc
)
This diff is collapsed.
Click to expand it.
python-libs/poulpe/runner.py
+
2
−
2
View file @
d5f77560
...
...
@@ -3,6 +3,7 @@
from
.
import
(
basics
as
poulpe
,
benchmarks
as
bench_mod
,
dataenvs
as
data_mod
,
errors
,
)
...
...
@@ -21,8 +22,7 @@
result_data
[
'
bin-env-vars
'
]
=
bin_env_data
[
'
bin-env-vars
'
]
# gather info about the data environment
data_env_desc
=
poulpe
.
data_env_file
(
data_env_path
)
data_env_data
=
poulpe
.
get_data
(
data_env_desc
)
data_env_data
=
data_mod
.
get_data_env
(
data_env_path
)
result_data
[
'
data-env-vars
'
]
=
data_env_data
[
'
data-env-vars
'
]
benchmark
=
bench_mod
.
get_benchmark
(
benchmark_path
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment