@@ -79,8 +79,6 @@ int main_kernel1() {
79
79
mram_read ((__mram_ptr void const * ) current_mram_block_addr_query , & searching_for , 8 );
80
80
current_mram_block_addr_query += 8 ;
81
81
82
- bool end = false;
83
-
84
82
// Initialize input vector boundaries
85
83
start_mram_block_addr_A = (uint32_t ) DPU_MRAM_HEAP_POINTER ;
86
84
start_mram_block_addr_aux = start_mram_block_addr_A ;
@@ -101,17 +99,15 @@ int main_kernel1() {
101
99
// Boundary check
102
100
if (current_mram_block_addr_A < (start_mram_block_addr_A + BLOCK_SIZE ))
103
101
{
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)
106
103
mram_read ((__mram_ptr void const * ) start_mram_block_addr_A , cache_A , BLOCK_SIZE );
107
104
found = search (cache_A , searching_for , BLOCK_SIZE );
108
105
109
106
if (found > -1 )
110
107
{
111
108
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 );
113
109
}
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)
115
111
else
116
112
{
117
113
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() {
121
117
if (found > -1 )
122
118
{
123
119
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 );
125
120
}
126
121
else
127
122
{
@@ -141,7 +136,6 @@ int main_kernel1() {
141
136
if (found > -1 )
142
137
{
143
138
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 );
145
139
break ;
146
140
}
147
141
0 commit comments