From 0f9b907deef5129141c0be52db12f6c0e8c054a4 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 12 Jan 2020 12:40:13 +0100 Subject: ParallelIterator for results --- src/solvers/gpu/output.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/solvers/gpu/output.rs') diff --git a/src/solvers/gpu/output.rs b/src/solvers/gpu/output.rs index 6bf7bcb..9030586 100644 --- a/src/solvers/gpu/output.rs +++ b/src/solvers/gpu/output.rs @@ -19,6 +19,9 @@ impl InBuffer { } fn read(&mut self) -> Option> { loop { + //println!("{:?}", self.receiver.recv().unwrap()); + //continue; + match self .receiver .recv() @@ -109,6 +112,7 @@ impl Output { if let Some(walls) = self.input.read() { for wall in walls { if !self.results.contains(&wall) { + wall.output(); self.result_sender .send(Message::RowResult(wall.clone())) .or_else(|_| Err(println!("Failed to transmit result back"))); -- cgit v1.2.3-70-g09d2