Skip to content
Snippets Groups Projects
Commit f5fe6b01 authored by Aaron Councilman's avatar Aaron Councilman
Browse files

Larger rodinia benches

parent 31523c2e
No related branches found
No related tags found
1 merge request!215Large benches
Pipeline #202040 passed
This commit is part of merge request !215. Comments created here will be created in the context of that merge request.
...@@ -18,7 +18,7 @@ fn backprop_bench(c: &mut Criterion) { ...@@ -18,7 +18,7 @@ fn backprop_bench(c: &mut Criterion) {
let mut rng = StdRng::seed_from_u64(7); let mut rng = StdRng::seed_from_u64(7);
let input_n = 65536; let input_n = 33554432;
let hidden_n = 16; let hidden_n = 16;
let output_n = 1; let output_n = 1;
...@@ -46,7 +46,7 @@ fn backprop_bench(c: &mut Criterion) { ...@@ -46,7 +46,7 @@ fn backprop_bench(c: &mut Criterion) {
let mut input_prev_weights = HerculesMutBox::from(input_prev_weights.to_vec()); let mut input_prev_weights = HerculesMutBox::from(input_prev_weights.to_vec());
let mut hidden_prev_weights = HerculesMutBox::from(hidden_prev_weights.to_vec()); let mut hidden_prev_weights = HerculesMutBox::from(hidden_prev_weights.to_vec());
group.bench_function("backprop bench", |b| { group.bench_function("backprop bench large", |b| {
b.iter(|| { b.iter(|| {
async_std::task::block_on(async { async_std::task::block_on(async {
r.run( r.run(
......
...@@ -9,6 +9,7 @@ use juno_bfs::graph_parser::*; ...@@ -9,6 +9,7 @@ use juno_bfs::graph_parser::*;
fn bfs_bench(c: &mut Criterion) { fn bfs_bench(c: &mut Criterion) {
let mut group = c.benchmark_group("bfs bench"); let mut group = c.benchmark_group("bfs bench");
group.sample_size(10);
let mut r = runner!(bfs); let mut r = runner!(bfs);
...@@ -35,6 +36,18 @@ fn bfs_bench(c: &mut Criterion) { ...@@ -35,6 +36,18 @@ fn bfs_bench(c: &mut Criterion) {
async_std::task::block_on(async { r.run(n, m, nodes.to(), source, edges.to()).await }); async_std::task::block_on(async { r.run(n, m, nodes.to(), source, edges.to()).await });
}) })
}); });
let input = "/scratch/aaronjc4/rodinia_3.1/data/bfs/graph64M.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 64M", |b| {
b.iter(|| {
async_std::task::block_on(async { r.run(n, m, nodes.to(), source, edges.to()).await });
})
});
} }
criterion_group!(benches, bfs_bench); criterion_group!(benches, bfs_bench);
......
...@@ -10,10 +10,11 @@ use juno_cfd::*; ...@@ -10,10 +10,11 @@ use juno_cfd::*;
fn cfd_bench(c: &mut Criterion) { fn cfd_bench(c: &mut Criterion) {
let mut group = c.benchmark_group("cfd bench"); let mut group = c.benchmark_group("cfd bench");
group.sample_size(10);
let mut r = runner!(euler); let mut r = runner!(euler);
let data_file = "data/fvcorr.domn.097K".to_string(); let data_file = "/scratch/aaronjc4/rodinia_3.1/data/cfd/missile.domn.0.2M".to_string();
let iterations = 1; let iterations = 150;
let block_size = 16; let block_size = 16;
let FarFieldConditions { let FarFieldConditions {
ff_variable, ff_variable,
...@@ -44,7 +45,7 @@ fn cfd_bench(c: &mut Criterion) { ...@@ -44,7 +45,7 @@ fn cfd_bench(c: &mut Criterion) {
let normals_y = HerculesImmBox::from(normals.y.as_slice()); let normals_y = HerculesImmBox::from(normals.y.as_slice());
let normals_z = HerculesImmBox::from(normals.z.as_slice()); let normals_z = HerculesImmBox::from(normals.z.as_slice());
group.bench_function("cfd bench euler", |b| { group.bench_function("cfd bench euler large", |b| {
b.iter(|| { b.iter(|| {
async_std::task::block_on(async { async_std::task::block_on(async {
r.run( r.run(
...@@ -84,8 +85,8 @@ fn cfd_bench(c: &mut Criterion) { ...@@ -84,8 +85,8 @@ fn cfd_bench(c: &mut Criterion) {
}); });
let mut r = runner!(pre_euler); let mut r = runner!(pre_euler);
let data_file = "data/fvcorr.domn.097K".to_string(); let data_file = "/scratch/aaronjc4/rodinia_3.1/data/cfd/missile.domn.0.2M".to_string();
let iterations = 1; let iterations = 150;
let block_size = 16; let block_size = 16;
let FarFieldConditions { let FarFieldConditions {
ff_variable, ff_variable,
...@@ -116,7 +117,7 @@ fn cfd_bench(c: &mut Criterion) { ...@@ -116,7 +117,7 @@ fn cfd_bench(c: &mut Criterion) {
let normals_y = HerculesImmBox::from(normals.y.as_slice()); let normals_y = HerculesImmBox::from(normals.y.as_slice());
let normals_z = HerculesImmBox::from(normals.z.as_slice()); let normals_z = HerculesImmBox::from(normals.z.as_slice());
group.bench_function("cfd bench pre-euler", |b| { group.bench_function("cfd bench pre-euler large", |b| {
b.iter(|| { b.iter(|| {
async_std::task::block_on(async { async_std::task::block_on(async {
r.run( r.run(
......
...@@ -9,12 +9,13 @@ use juno_srad::*; ...@@ -9,12 +9,13 @@ use juno_srad::*;
fn srad_bench(c: &mut Criterion) { fn srad_bench(c: &mut Criterion) {
let mut group = c.benchmark_group("srad bench"); let mut group = c.benchmark_group("srad bench");
group.sample_size(10);
let mut r = runner!(srad); let mut r = runner!(srad);
let niter = 100; let niter = 30;
let lambda = 0.5; let lambda = 0.5;
let nrows = 512; let nrows = 2048;
let ncols = 512; let ncols = 2048;
let image = "data/image.pgm".to_string(); let image = "data/image.pgm".to_string();
let Image { let Image {
image: image_ori, image: image_ori,
...@@ -24,7 +25,7 @@ fn srad_bench(c: &mut Criterion) { ...@@ -24,7 +25,7 @@ fn srad_bench(c: &mut Criterion) {
} = read_graphics(image); } = read_graphics(image);
let image = resize(&image_ori, image_ori_rows, image_ori_cols, nrows, ncols); let image = resize(&image_ori, image_ori_rows, image_ori_cols, nrows, ncols);
let mut image_h = HerculesMutBox::from(image.clone()); let mut image_h = HerculesMutBox::from(image.clone());
group.bench_function("srad bench", |b| { group.bench_function("srad bench large", |b| {
b.iter(|| { b.iter(|| {
async_std::task::block_on(async { async_std::task::block_on(async {
r.run( r.run(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment