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:
@@ -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);
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user