From c0627ee3bb565810a4556aed286b14222050ac59 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Thu, 26 Sep 2019 14:01:46 +0300
Subject: [PATCH] Do ilw align and remove debug outputs

---
 applications/reconstruct/src/ilw/ilw.cpp | 4 ++--
 applications/reconstruct/src/ilw/ilw.cu  | 2 +-
 applications/reconstruct/src/main.cpp    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/applications/reconstruct/src/ilw/ilw.cpp b/applications/reconstruct/src/ilw/ilw.cpp
index a10cce193..99ce64fe8 100644
--- a/applications/reconstruct/src/ilw/ilw.cpp
+++ b/applications/reconstruct/src/ilw/ilw.cpp
@@ -84,7 +84,7 @@ bool ILW::_phase1(ftl::rgbd::FrameSet &fs, cudaStream_t stream) {
         for (size_t j=0; j<fs.frames.size(); ++j) {
             if (i == j) continue;
 
-            LOG(INFO) << "Running phase1";
+            //LOG(INFO) << "Running phase1";
 
             auto &f1 = fs.frames[i];
             auto &f2 = fs.frames[j];
@@ -111,7 +111,7 @@ bool ILW::_phase1(ftl::rgbd::FrameSet &fs, cudaStream_t stream) {
                 LOG(ERROR) << "Exception in correspondence: " << e.what();
             }
 
-            LOG(INFO) << "Correspondences done... " << i;
+            //LOG(INFO) << "Correspondences done... " << i;
         }
     }
 
diff --git a/applications/reconstruct/src/ilw/ilw.cu b/applications/reconstruct/src/ilw/ilw.cu
index b97c49964..3c4946ca7 100644
--- a/applications/reconstruct/src/ilw/ilw.cu
+++ b/applications/reconstruct/src/ilw/ilw.cu
@@ -77,7 +77,7 @@ void ftl::cuda::correspondence_energy_vector(
     const dim3 gridSize((p1.width() + 2 - 1)/2, (p1.height() + T_PER_BLOCK - 1)/T_PER_BLOCK);
     const dim3 blockSize(2*WARP_SIZE, T_PER_BLOCK);
 
-    printf("COR SIZE %d,%d\n", p1.width(), p1.height());
+    //printf("COR SIZE %d,%d\n", p1.width(), p1.height());
 
     correspondence_energy_vector_kernel<<<gridSize, blockSize, 0, stream>>>(
         p1, p2, c1, c2, vout, eout, pose2, cam2
diff --git a/applications/reconstruct/src/main.cpp b/applications/reconstruct/src/main.cpp
index 2694706de..96cd4a8de 100644
--- a/applications/reconstruct/src/main.cpp
+++ b/applications/reconstruct/src/main.cpp
@@ -146,7 +146,7 @@ static void run(ftl::Configurable *root) {
 
 			// Send all frames to GPU, block until done?
 			scene_A.upload(Channel::Colour + Channel::Depth);  // TODO: (Nick) Add scene stream.
-			//align->process(scene_A);
+			align->process(scene_A);
 
 			// TODO: To use second GPU, could do a download, swap, device change,
 			// then upload to other device. Or some direct device-2-device copy.
-- 
GitLab