Skip to content

Commit 83c0c4c

Browse files
authored
[Fix] Replace dmlc::Error with std::exception in VerifyGPUCode (#18103)
1 parent 910aeaf commit 83c0c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/meta_schedule/postproc/verify_gpu_code.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ThreadExtentChecker : private StmtVisitor {
3131
ThreadExtentChecker checker(thread_warp_size);
3232
checker.VisitStmt(stmt);
3333
return true;
34-
} catch (const dmlc::Error& e) {
34+
} catch (const std::exception&) {
3535
return false;
3636
}
3737
}
@@ -188,7 +188,7 @@ class VerifyGPUCodeNode : public PostprocNode {
188188
}
189189
IRModule mod = IRModule(Map<GlobalVar, BaseFunc>({{GlobalVar(g_var->name_hint), f}}));
190190
lowered = tvm::transform::Sequential(pass_list)(std::move(mod));
191-
} catch (const dmlc::Error& e) {
191+
} catch (const std::exception&) {
192192
return false;
193193
}
194194
if (!Verify(lowered)) {

0 commit comments

Comments
 (0)