Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix task waiting #68

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions dory/Hardware_targets/PULP/GAP9_NE16/Utils_files/execute.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ static inline void execute_stride2x2_blocking(nnx_task_t *task, Layer tile,
}

static inline void execute_wait(nnx_task_t *task) {
while (!ne16_empty()) {
ne16_event_wait();
}
#if __PLATFORM__ == ARCHI_PLATFORM_GVSOC && defined GAP_SDK
// Temporary hack because the gvsoc model of ne16 in gap_sdk
// has a broken running_id.
while(!ne16_empty())
;
#else
while(!nnx_resolve_check(task))
;
#endif
}

#endif // __EXECUTE_H__