Skip to content

Commit bab6c1b

Browse files
committed
bs_refactor: Remove printf for logging
Signed-off-by: Yun-Ze Li <p76091292@gs.ncku.edu.tw>
1 parent eda4f83 commit bab6c1b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

BS/dpu/task.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ int main_kernel1() {
7979
mram_read((__mram_ptr void const *) current_mram_block_addr_query, &searching_for, 8);
8080
current_mram_block_addr_query += 8;
8181

82-
bool end = false;
83-
8482
// Initialize input vector boundaries
8583
start_mram_block_addr_A = (uint32_t) DPU_MRAM_HEAP_POINTER;
8684
start_mram_block_addr_aux = start_mram_block_addr_A;
@@ -101,17 +99,15 @@ int main_kernel1() {
10199
// Boundary check
102100
if(current_mram_block_addr_A < (start_mram_block_addr_A + BLOCK_SIZE))
103101
{
104-
//end = true;
105-
// find (start_mram_block_addr_A, start_mram_block_addr_A + BLOCK_SIZE)
102+
// Search inside (start_mram_block_addr_A, start_mram_block_addr_A + BLOCK_SIZE)
106103
mram_read((__mram_ptr void const *) start_mram_block_addr_A, cache_A, BLOCK_SIZE);
107104
found = search(cache_A, searching_for, BLOCK_SIZE);
108105

109106
if(found > -1)
110107
{
111108
result->found = found + (start_mram_block_addr_A - start_mram_block_addr_aux) / sizeof(DTYPE);
112-
printf("Tasklet %d has found %lld\n", me(), result->found + 1);
113109
}
114-
// find (start_mram_block_addr_A + BLOCK_SIZE, end_mram_block_addr_A)
110+
// Search inside (start_mram_block_addr_A + BLOCK_SIZE, end_mram_block_addr_A)
115111
else
116112
{
117113
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() {
121117
if(found > -1)
122118
{
123119
result->found = found + (start_mram_block_addr_A + BLOCK_SIZE - start_mram_block_addr_aux) / sizeof(DTYPE);
124-
printf("Tasklet %d has found %lld\n", me(), result->found + 1);
125120
}
126121
else
127122
{
@@ -141,7 +136,6 @@ int main_kernel1() {
141136
if(found > -1)
142137
{
143138
result->found = found + (current_mram_block_addr_A - start_mram_block_addr_aux) / sizeof(DTYPE);
144-
printf("Tasklet %d has found %lld\n", me(), result->found + 1);
145139
break;
146140
}
147141

0 commit comments

Comments
 (0)