diff --git a/hercules_opt/src/interprocedural_sroa.rs b/hercules_opt/src/interprocedural_sroa.rs index c7ea58360bf09b2a8e221a19f66a9bfe81126516..a01b0f5553ef59aaf45fe6ccc2c3ee7bdc881a0b 100644 --- a/hercules_opt/src/interprocedural_sroa.rs +++ b/hercules_opt/src/interprocedural_sroa.rs @@ -85,7 +85,6 @@ pub fn interprocedural_sroa( param_nodes[idx].push(id); } } - println!("{}", editor.func().name); let success = editor.edit(|mut edit| { for (idx, ids) in param_nodes.into_iter().enumerate() { let new_indices = &old_param_type_map[idx]; diff --git a/juno_samples/rodinia/cfd/src/lib.rs b/juno_samples/rodinia/cfd/src/lib.rs index 62ee59f4f285b3a829ad95a9a323811b3b3895b7..f9a5dd765a60fce945aa2a7badac2497e4640358 100644 --- a/juno_samples/rodinia/cfd/src/lib.rs +++ b/juno_samples/rodinia/cfd/src/lib.rs @@ -48,8 +48,7 @@ fn run_euler( let normals_z = HerculesImmBox::from(normals.z.as_slice()); let mut runner = runner!(euler); - let (density, momentum_x, momentum_y, momentum_z, energy) = - async_std::task::block_on(async { + let (density, momentum_x, momentum_y, momentum_z, energy) = async_std::task::block_on(async { runner .run( nelr as u64, @@ -123,8 +122,7 @@ fn run_pre_euler( let normals_z = HerculesImmBox::from(normals.z.as_slice()); let mut runner = runner!(pre_euler); - let (density, momentum_x, momentum_y, momentum_z, energy) = - async_std::task::block_on(async { + let (density, momentum_x, momentum_y, momentum_z, energy) = async_std::task::block_on(async { runner .run( nelr as u64, @@ -189,15 +187,30 @@ fn compare_floats(xs: &Variables, ys: &Variables) -> bool { let ys_energy = ys.energy.as_slice(); xs_density.len() == ys_density.len() - && xs_density.iter().zip(ys_density.iter()).all(|(x, y)| compare_float(*x, *y)) + && xs_density + .iter() + .zip(ys_density.iter()) + .all(|(x, y)| compare_float(*x, *y)) && xs_momentum_x.len() == ys_momentum_x.len() - && xs_momentum_x.iter().zip(ys_momentum_x.iter()).all(|(x, y)| compare_float(*x, *y)) + && xs_momentum_x + .iter() + .zip(ys_momentum_x.iter()) + .all(|(x, y)| compare_float(*x, *y)) && xs_momentum_y.len() == ys_momentum_y.len() - && xs_momentum_y.iter().zip(ys_momentum_y.iter()).all(|(x, y)| compare_float(*x, *y)) + && xs_momentum_y + .iter() + .zip(ys_momentum_y.iter()) + .all(|(x, y)| compare_float(*x, *y)) && xs_momentum_z.len() == ys_momentum_z.len() - && xs_momentum_z.iter().zip(ys_momentum_z.iter()).all(|(x, y)| compare_float(*x, *y)) + && xs_momentum_z + .iter() + .zip(ys_momentum_z.iter()) + .all(|(x, y)| compare_float(*x, *y)) && xs_energy.len() == ys_energy.len() - && xs_energy.iter().zip(ys_energy.iter()).all(|(x, y)| compare_float(*x, *y)) + && xs_energy + .iter() + .zip(ys_energy.iter()) + .all(|(x, y)| compare_float(*x, *y)) } pub fn cfd_harness(args: CFDInputs) {