Skip to content

Commit

Permalink
Comply with new function signature in new example program
Browse files Browse the repository at this point in the history
  • Loading branch information
subhankarpal committed Oct 5, 2020
1 parent 6e71e65 commit 0a80ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/app/src/vector_add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void *work(void *arg) { // manager "spawns" worker threads with tid=1,2,3...

int main() {
printf("== Vector Add Test with N = %u, NUM_WORKER = %u\n", N, NUM_WORKER);
__init_queues(WQ_DEPTH);
__init(NUM_PE, WQ_DEPTH);
__register_core_id(0); // manager is assigned core-id 0

// main memory allocation
Expand Down Expand Up @@ -149,7 +149,7 @@ int main() {
munmap(ram, RAM_SIZE_BYTES);
delete[] workers;
delete[] tids;
__teardown_queues();
__teardown();

if (pass)
printf("== Test Passed ==\n");
Expand Down

0 comments on commit 0a80ba5

Please sign in to comment.