Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tests_sog_lp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PMC-SOG
experiments
tests_sog_lp
Commits
59de8e33
Commit
59de8e33
authored
2 months ago
by
Jaime Arias
Browse files
Options
Downloads
Patches
Plain Diff
fix: benchmarks script
parent
5c823c04
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks.sh
+15
-11
15 additions, 11 deletions
benchmarks.sh
with
15 additions
and
11 deletions
benchmarks.sh
+
15
−
11
View file @
59de8e33
...
@@ -12,7 +12,8 @@ optlp="./tools/${platform}/optlp"
...
@@ -12,7 +12,8 @@ optlp="./tools/${platform}/optlp"
# results folder
# results folder
output_folder
=
"./results"
output_folder
=
"./results"
# folder with the models models_folder="./models"
# folder with the models
models_folder
=
"./models"
# create a folder if it doesn't exist
# create a folder if it doesn't exist
function
create_folder
{
function
create_folder
{
...
@@ -41,7 +42,7 @@ function run_sog {
...
@@ -41,7 +42,7 @@ function run_sog {
local
output
=
$3
local
output
=
$3
local timeout
=
$4
local timeout
=
$4
timeout
"
$timeout
"
$sog
--input-net
"
$model
"
--bound
"
$bound
"
--output-folder
"
$output
"
||
echo
-e
"
\n
timeout
${
timeout
}
"
timeout
"
$timeout
"
$sog
MBT
--input-net
"
$model
"
--bound
"
$bound
"
--output-folder
"
$output
"
||
echo
-e
"
\n
timeout
${
timeout
}
"
}
}
# run optlp <lts> <output> <timeout>
# run optlp <lts> <output> <timeout>
...
@@ -71,18 +72,21 @@ function run_benchmark {
...
@@ -71,18 +72,21 @@ function run_benchmark {
instance_name
=
"
$(
basename
--
$file
)
"
instance_name
=
"
$(
basename
--
$file
)
"
# run sogMBT
# run sogMBT
output_sog_file
=
"
${
output
}
/
${
instance_name
}
.sogMBT.txt"
output_sog
MBT
_file
=
"
${
output
}
/
${
instance_name
}
.sogMBT.txt"
if
[[
!
-f
"
${
output_sog_file
}
"
]]
;
then
if
[[
!
-f
"
${
output_sog
MBT
_file
}
"
]]
;
then
echo
"running sogMBT (SOG bound
${
bound
}
- timeout
${
timeout
}
):
${
file
}
.net"
echo
"running sogMBT (SOG bound
${
bound
}
- timeout
${
timeout
}
):
${
file
}
.net"
run_sog
"
${
file
}
.net"
"
$bound
"
"
$output
"
"
${
timeout
}
"
>
"
${
output_sog_file
}
"
run_sog
"
${
file
}
.net"
"
$bound
"
"
$output
"
"
${
timeout
}
"
>
"
${
output_sog
MBT
_file
}
"
fi
fi
# run optlp
# run optlp
# output_optlp_file="${output}/${instance_name}.optlp.txt"
sog_file
=
"
${
output
}
/
${
instance_name
}
_sog.dot"
# if [[ ! -f "${output_optlp_file}" ]]; then
output_optlp_file
=
"
${
output
}
/
${
instance_name
}
.optlp.txt"
# echo "running optlp (timeout ${timeout}): ${file}.dll"
if
[[
-f
"
${
output_optlp_file
}
"
]]
;
then
# run
echo
"running optlp (timeout
${
timeout
}
):
${
sog_file
}
"
# fi
run_optlp
"
${
sog_file
}
"
"
${
output
}
"
"
${
timeout
}
"
>
"
${
output_optlp_file
}
"
else
echo
"skipping optlp (sogMBT timeout)"
fi
done
done
}
}
...
@@ -119,7 +123,7 @@ fi
...
@@ -119,7 +123,7 @@ fi
# use "all" for run all the experiments
# use "all" for run all the experiments
if
[
"
$MODEL
"
=
"all"
]
;
then
if
[
"
$MODEL
"
=
"all"
]
;
then
MODEL
=
$(
find
"
$models_folder
"
-mindepth
1
-type
d
-exec
basename
{}
\;
)
MODEL
=
$(
find
"
$
{
models_folder
}
"
-mindepth
1
-type
d
-exec
basename
{}
\;
)
fi
fi
# run benchmark
# run benchmark
...
...
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