Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Hercules
Merge requests
!215
Large benches
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Large benches
large-benches
into
main
Overview
0
Commits
27
Pipelines
6
Changes
4
Merged
rarbore2
requested to merge
large-benches
into
main
2 weeks ago
Overview
0
Commits
27
Pipelines
6
Changes
4
Expand
Add "large" Rodinia benchmarks for higher CPU utilization.
Edited
2 weeks ago
by
rarbore2
0
0
Merge request reports
Viewing commit
65a5416a
Prev
Next
Show latest version
4 files
+
185
−
163
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
65a5416a
cleanup cfd bench
· 65a5416a
Russel Arbore
authored
2 weeks ago
juno_samples/rodinia/bfs/benches/bfs_bench.rs
+
25
−
12
Options
@@ -9,28 +9,41 @@ use juno_bfs::graph_parser::*;
fn
bfs_bench
(
c
:
&
mut
Criterion
)
{
let
mut
group
=
c
.benchmark_group
(
"bfs bench"
);
group
.sample_size
(
10
);
let
mut
r
=
runner!
(
bfs
);
let
input
=
"data/graph4096.txt"
;
let
(
nodes
,
source
,
edges
)
=
parse_graph
(
input
.into
());
let
n
=
nodes
.len
()
as
u64
;
let
m
=
edges
.len
()
as
u64
;
let
nodes
=
HerculesImmBox
::
from
(
&
nodes
as
&
[
Node
]);
let
edges
=
HerculesImmBox
::
from
(
&
edges
as
&
[
u32
]);
group
.bench_function
(
"bfs bench 4096"
,
|
b
|
{
let
input
=
"data/graph4096.txt"
;
let
(
nodes
,
source
,
edges
)
=
parse_graph
(
input
.into
())
.unwrap
();
let
n
=
nodes
.len
()
as
u64
;
let
m
=
edges
.len
()
as
u64
;
let
nodes
=
HerculesImmBox
::
from
(
&
nodes
as
&
[
Node
]);
let
edges
=
HerculesImmBox
::
from
(
&
edges
as
&
[
u32
]);
b
.iter
(||
{
async_std
::
task
::
block_on
(
async
{
r
.run
(
n
,
m
,
nodes
.to
(),
source
,
edges
.to
())
.await
});
})
});
let
input
=
"data/graph65536.txt"
;
let
(
nodes
,
source
,
edges
)
=
parse_graph
(
input
.into
());
let
n
=
nodes
.len
()
as
u64
;
let
m
=
edges
.len
()
as
u64
;
let
nodes
=
HerculesImmBox
::
from
(
&
nodes
as
&
[
Node
]);
let
edges
=
HerculesImmBox
::
from
(
&
edges
as
&
[
u32
]);
group
.bench_function
(
"bfs bench 65536"
,
|
b
|
{
let
input
=
"data/graph65536.txt"
;
let
(
nodes
,
source
,
edges
)
=
parse_graph
(
input
.into
())
.unwrap
();
let
n
=
nodes
.len
()
as
u64
;
let
m
=
edges
.len
()
as
u64
;
let
nodes
=
HerculesImmBox
::
from
(
&
nodes
as
&
[
Node
]);
let
edges
=
HerculesImmBox
::
from
(
&
edges
as
&
[
u32
]);
b
.iter
(||
{
async_std
::
task
::
block_on
(
async
{
r
.run
(
n
,
m
,
nodes
.to
(),
source
,
edges
.to
())
.await
});
})
});
group
.bench_function
(
"bfs bench 64M"
,
|
b
|
{
let
input
=
"/scratch/aaronjc4/rodinia_3.1/data/bfs/graph64M.txt"
;
let
(
nodes
,
source
,
edges
)
=
parse_graph
(
input
.into
())
.expect
(
"PANIC: Couldn't read input file for 64M benchmark. Currently, this benchmark uses a hard-coded path, so it can only be run on the lab machines."
);
let
n
=
nodes
.len
()
as
u64
;
let
m
=
edges
.len
()
as
u64
;
let
nodes
=
HerculesImmBox
::
from
(
&
nodes
as
&
[
Node
]);
let
edges
=
HerculesImmBox
::
from
(
&
edges
as
&
[
u32
]);
b
.iter
(||
{
async_std
::
task
::
block_on
(
async
{
r
.run
(
n
,
m
,
nodes
.to
(),
source
,
edges
.to
())
.await
});
})
Loading