diff --git a/hipamd/src/hip_prof_api.h b/hipamd/src/hip_prof_api.h index 787a62c5ed..76bfa4e394 100644 --- a/hipamd/src/hip_prof_api.h +++ b/hipamd/src/hip_prof_api.h @@ -134,7 +134,7 @@ class api_callbacks_table_t { inline void sem_sync(const uint32_t& id) { sem_increment(id); - if (entry(id).sync.load() == true) sync_wait(id); + while (entry(id).sync.load() == true) sync_wait(id); } inline void sem_release(const uint32_t& id) {