Skip to content

Commit ad611ca

Browse files
committed
Add target metadata
1 parent db228a3 commit ad611ca

File tree

7 files changed

+466
-225
lines changed

7 files changed

+466
-225
lines changed

kifmm/examples/mpi_test_upward_pass.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ fn main() {
2424
};
2525
use rlst::{RawAccess, RlstScalar};
2626

27-
fn test_upward_pass(name: String, expansion_order: &[usize], world: &mpi::topology::SimpleCommunicator) {
28-
27+
fn test_upward_pass(
28+
name: String,
29+
expansion_order: &[usize],
30+
world: &mpi::topology::SimpleCommunicator,
31+
) {
2932
let comm = world.duplicate();
3033

3134
// Tree parameters
@@ -215,8 +218,7 @@ fn main() {
215218
}
216219
}
217220

218-
let (universe, _threading) =
219-
mpi::initialize_with_threading(mpi::Threading::Funneled).unwrap();
221+
let (universe, _threading) = mpi::initialize_with_threading(mpi::Threading::Funneled).unwrap();
220222
let world = universe.world();
221223

222224
let expansion_order = [5, 4, 5, 4, 5, 4];

kifmm/src/fmm/builder/multi_node.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,13 @@ where
445445
}
446446

447447
// TODO
448-
// let (_, duration) = optionally_time(timed, || result.target());
448+
let (_, duration) = optionally_time(timed, || result.target());
449449

450-
// if let Some(d) = duration {
451-
// result
452-
// .metadata_times
453-
// .push(MetadataTime::from_duration(MetadataType::TargetData, d))
454-
// }
450+
if let Some(d) = duration {
451+
result
452+
.metadata_times
453+
.push(MetadataTime::from_duration(MetadataType::TargetData, d))
454+
}
455455

456456
// let (_, duration) = optionally_time(timed, || result.source_to_target());
457457

0 commit comments

Comments
 (0)