Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
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
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Schmaus
emper
Commits
dcd6ee3c
"README.md" did not exist on "3c955b407a084810f57260d61548cc92c14bc627"
Commit
dcd6ee3c
authored
Feb 20, 2020
by
Nicolas Pfeiffer
Browse files
Options
Downloads
Patches
Plain Diff
improved run_benchmarks script
parent
ede46987
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_benchmarks.sh
+18
-33
18 additions, 33 deletions
run_benchmarks.sh
with
18 additions
and
33 deletions
run_benchmarks.sh
+
18
−
33
View file @
dcd6ee3c
...
...
@@ -5,8 +5,7 @@
benchmark_dir
=
build/benchmarks
result_dir
=
results
#benchmarks=("emper_fiber" "emper_continuation" "tbb" "fibril" "cilkplus")
benchmarks
=(
"emper_continuation"
"tbb"
"fibril"
"cilkplus"
)
benchmarks
=(
"serial"
"emper_fiber"
"emper_continuation"
"tbb"
"fibril"
"cilkplus"
)
benchmark_serial
=
"serial"
max_cores
=
96
...
...
@@ -15,57 +14,43 @@ step_size=4
run_target
()
{
(
EMPER_BENCH_NPROCS
=
$2
./
$1
>
tmp
while
[[
$?
-ne
0
]]
;
do
EMPER_BENCH_NPROCS
=
$2
./
$1
>
tmp
done
cat
tmp
)
2> /dev/null
}
#[[ -d $benchmark_dir ]] || make
make release
>
/dev/null
||
exit
1
make release &> /dev/null
||
exit
1
for
benchmark_name
in
${
benchmarks
[@]
}
;
do
target_dir
=
"
$benchmark_dir
/
$benchmark_name
"
output_parent_dir
=
"
$result_dir
/
$benchmark_name
"
echo
"
$target_dir
"
for
target_name
in
$(
ls
$target_dir
)
;
do
target
=
"
$target_dir
/
$target_name
"
if
[[
-f
$target
&&
-x
$target
]]
;
then
output_dir
=
"
$output_parent_dir
/
$target_name
"
echo
$target
[[
-d
$output_dir
]]
||
mkdir
-p
$output_dir
false
||
while
[[
$?
-ne
0
]]
;
do
EMPER_BENCH_NPROCS
=
1 ./
$target
2> /dev/null
>
$output_dir
/001.txt
done
run_target
$target
1
>
$output_dir
/001.txt
if
[[
$benchmark_name
-ne
$benchmark_serial
]]
;
then
for
cores
in
$(
seq
$step_size
$step_size
$max_cores
)
;
do
false
||
while
[[
$?
-ne
0
]]
;
do
EMPER_BENCH_NPROCS
=
$cores
./
$target
2> /dev/null
>
$output_dir
/
$(
printf
"%03d"
$cores
)
.txt
done
run_target
$target
$cores
>
$output_dir
/
$(
printf
"%03d"
$cores
)
.txt
done
fi
fi
done
done
target_dir
=
"
$benchmark_dir
/
$benchmark_serial
"
output_parent_dir
=
"
$result_dir
/
$benchmark_serial
"
for
target_name
in
$(
ls
$target_dir
)
;
do
target
=
"
$target_dir
/
$target_name
"
if
[[
-f
$target
&&
-x
$target
]]
;
then
output_dir
=
"
$output_parent_dir
/
$target_name
"
echo
$target
[[
-d
$output_dir
]]
||
mkdir
-p
$output_dir
false
||
while
[[
$?
-ne
0
]]
;
do
EMPER_BENCH_NPROCS
=
1 ./
$target
2> /dev/null
>
$output_dir
/001.txt
done
fi
done
exit
0
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
sign in
to comment