From 73ee1afb1797eebee74d4e466c099396fb22bd56 Mon Sep 17 00:00:00 2001 From: Laurent Morichetti Date: Wed, 11 Aug 2021 21:25:49 -0700 Subject: [PATCH] Fix a build failure on Windows Terse static_assert is only available starting with c++17. Add the message argument since HIP is not compiled using c++17. Change-Id: I77bc7ddb635e50ac3e6744d73c8751dc8299087e --- hipamd/src/hip_prof_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_prof_api.h b/hipamd/src/hip_prof_api.h index f5a96a8222..787a62c5ed 100644 --- a/hipamd/src/hip_prof_api.h +++ b/hipamd/src/hip_prof_api.h @@ -192,7 +192,7 @@ class api_callbacks_spawner_t { { if (!is_enabled()) return; - static_assert(cid_ >= HIP_API_ID_FIRST || cid_ <= HIP_API_ID_LAST); + static_assert(cid_ >= HIP_API_ID_FIRST || cid_ <= HIP_API_ID_LAST, "invalid callback id"); callbacks_table.sem_sync(cid_); auto &entry = this->entry(cid_); fun_ = std::make_pair(entry.fun, entry.arg);