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
This commit is contained in:
Laurent Morichetti
2021-08-11 21:25:49 -07:00
parent 0670e49806
commit 73ee1afb17
+1 -1
Vedi File
@@ -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);