Skip to content

Commit 7cc02d4

Browse files
committed
test fix
1 parent 47b738d commit 7cc02d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/target/codegen_cuda.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,11 @@ void CodeGenTileLangCUDA::VisitExpr_(const CallNode *op, std::ostream &os) {
10451045
this->stream << mbarrier_obj << ".expect_transaction(" << transaction_bytes
10461046
<< ");\n";
10471047
} else if (op->op.same_as(tl::mbarrier_wait_parity())) {
1048-
print_extern_call_stmt("tl::mbarrier_wait");
1048+
ICHECK_EQ(op->args.size(), 2);
1049+
this->PrintIndent();
1050+
auto mbarrier_obj = print_mbarrier_obj(op->args[0]);
1051+
auto phase = this->PrintExpr(op->args[1]);
1052+
this->stream << mbarrier_obj << ".wait(" << phase << ");\n";
10491053
} else if (op->op.same_as(tl::no_set_max_nreg())) {
10501054
return;
10511055
} else if (op->op.same_as(tl::tma_load())) {

0 commit comments

Comments
 (0)