From 2222aa921ac5ac8164d5e71eb66d7aa18b74286e Mon Sep 17 00:00:00 2001
From: git_unspecified <git@unspecified.com>
Date: Mon, 22 Aug 2022 18:39:27 -0500
Subject: [PATCH] Clean-up

---
 src/guided_dc.cc   | 16 ----------------
 src/hpvm_dclib.hpp |  1 +
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/src/guided_dc.cc b/src/guided_dc.cc
index e3d6234..8e3b37b 100644
--- a/src/guided_dc.cc
+++ b/src/guided_dc.cc
@@ -71,7 +71,6 @@ void stencil(HpvmBufHeader<LNode>* buf_header, size_t header_size) {
   root->next->val = 100;
   while (root) {
     root->delta(1);
-    // root->val = (size_t)root->next;
     root = root->next;
   }
 
@@ -94,21 +93,6 @@ int main(int argc, char* argv[]) {
                               host_buf.buf->total_size(), 1, host_buf.buf,
                               host_buf.buf->total_size());
   __hetero_wait(DFG);
-#else
-/*
-  auto* buf_header = host_buf.buf;
-
-  buf_header->to_absolute_pointer(buf_header->get_obj_start());
-  LNode* root = (LNode*)buf_header->get_obj_start();
-
-  while (root) {
-    root->delta(1);
-    // root->val = (size_t)root->next;
-    root = root->next;
-  }
-
-  buf_header->to_relative_pointer(buf_header->get_obj_start());
-        */
 #endif
 
   std::cout << "After kernel in buffer:\n";
diff --git a/src/hpvm_dclib.hpp b/src/hpvm_dclib.hpp
index 07d4512..135f71d 100644
--- a/src/hpvm_dclib.hpp
+++ b/src/hpvm_dclib.hpp
@@ -25,6 +25,7 @@
 using byte = char;
 
 // In a separate file ----------------------
+// TODO: move to separate file to make this global
 static std::unordered_map<void*, std::pair<const std::type_info*, size_t>>
     hpvm_allocation_record;
 
-- 
GitLab