From 8a86e8e64c1af13d7e541ec2f4bcfaf1461acd92 Mon Sep 17 00:00:00 2001 From: Luka Macan Date: Thu, 9 Nov 2023 16:12:46 +0100 Subject: [PATCH] Remove event waiting because it hangs on board --- .../PULP/GAP9_NE16/Utils_files/execute.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dory/Hardware_targets/PULP/GAP9_NE16/Utils_files/execute.h b/dory/Hardware_targets/PULP/GAP9_NE16/Utils_files/execute.h index 8bd60d79..5e078d64 100644 --- a/dory/Hardware_targets/PULP/GAP9_NE16/Utils_files/execute.h +++ b/dory/Hardware_targets/PULP/GAP9_NE16/Utils_files/execute.h @@ -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__