diff options
author | Yun-Ze Li <p76091292@gs.ncku.edu.tw> | 2021-12-23 09:31:35 +0100 |
---|---|---|
committer | Yun-Ze Li <p76091292@gs.ncku.edu.tw> | 2021-12-23 09:31:35 +0100 |
commit | bab6c1ba39b7a00eccf3ecdcc7bd4560d2581d18 (patch) | |
tree | c21c6c6db4eb333954f872a282e70d8025412f9d /BS | |
parent | eda4f83d73ab2737e7d0d245d87c1dd248a93ce5 (diff) |
bs_refactor: Remove printf for logging
Signed-off-by: Yun-Ze Li <p76091292@gs.ncku.edu.tw>
Diffstat (limited to 'BS')
-rw-r--r-- | BS/dpu/task.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/BS/dpu/task.c b/BS/dpu/task.c index 92a383f..acf66f2 100644 --- a/BS/dpu/task.c +++ b/BS/dpu/task.c @@ -79,8 +79,6 @@ int main_kernel1() { mram_read((__mram_ptr void const *) current_mram_block_addr_query, &searching_for, 8); current_mram_block_addr_query += 8; - bool end = false; - // Initialize input vector boundaries start_mram_block_addr_A = (uint32_t) DPU_MRAM_HEAP_POINTER; start_mram_block_addr_aux = start_mram_block_addr_A; @@ -101,17 +99,15 @@ int main_kernel1() { // Boundary check if(current_mram_block_addr_A < (start_mram_block_addr_A + BLOCK_SIZE)) { - //end = true; - // find (start_mram_block_addr_A, start_mram_block_addr_A + BLOCK_SIZE) + // Search inside (start_mram_block_addr_A, start_mram_block_addr_A + BLOCK_SIZE) mram_read((__mram_ptr void const *) start_mram_block_addr_A, cache_A, BLOCK_SIZE); found = search(cache_A, searching_for, BLOCK_SIZE); if(found > -1) { result->found = found + (start_mram_block_addr_A - start_mram_block_addr_aux) / sizeof(DTYPE); - printf("Tasklet %d has found %lld\n", me(), result->found + 1); } - // find (start_mram_block_addr_A + BLOCK_SIZE, end_mram_block_addr_A) + // Search inside (start_mram_block_addr_A + BLOCK_SIZE, end_mram_block_addr_A) else { size_t remain_bytes_to_search = end_mram_block_addr_A - (start_mram_block_addr_A + BLOCK_SIZE); @@ -121,7 +117,6 @@ int main_kernel1() { if(found > -1) { result->found = found + (start_mram_block_addr_A + BLOCK_SIZE - start_mram_block_addr_aux) / sizeof(DTYPE); - printf("Tasklet %d has found %lld\n", me(), result->found + 1); } else { @@ -141,7 +136,6 @@ int main_kernel1() { if(found > -1) { result->found = found + (current_mram_block_addr_A - start_mram_block_addr_aux) / sizeof(DTYPE); - printf("Tasklet %d has found %lld\n", me(), result->found + 1); break; } |