"src/git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "3c10c3b928097035655e913eaf0e5dfc900f0f25"
Commit f4789844 authored by Paul's avatar Paul
Browse files

Use assert

parent cbf378b5
...@@ -200,7 +200,7 @@ struct compile_manager ...@@ -200,7 +200,7 @@ struct compile_manager
void update_configs() void update_configs()
{ {
if(not exhaustive) if (not exhaustive)
return; return;
par_compile(cps.size(), [&](auto i) { cps[i].update_config(); }); par_compile(cps.size(), [&](auto i) { cps[i].update_config(); });
} }
...@@ -246,8 +246,7 @@ void compile_ops::apply(module& m) const ...@@ -246,8 +246,7 @@ void compile_ops::apply(module& m) const
cm.compile(m); cm.compile(m);
// Compile already tuned configs // Compile already tuned configs
cm.compile(m); cm.compile(m);
if(not cm.cps.empty()) assert(cm.cps.empty());
MIGRAPHX_THROW("Untuned configs");
} }
} // namespace gpu } // namespace gpu
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment