Skip to content

Commit

Permalink
Remove unnecessary bracelet around make_int (apache#7907)
Browse files Browse the repository at this point in the history
Turning from `((make_int4)(exp))` to `(make_int4(exp))`. The former case is incompatible with "macro-defined function".
  • Loading branch information
YinanZhu2015 authored and Trevor Morris committed May 6, 2021
1 parent f15901d commit c63d82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/source/codegen_cuda.cc
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ void CodeGenCUDA::VisitStmt_(const EvaluateNode* op) {
}

void CodeGenCUDA::VisitExpr_(const RampNode* op, std::ostream& os) {
os << "((make_int" << op->lanes << ")(";
os << "(make_int" << op->lanes << "(";
for (int i = 0; i < op->lanes; i++) {
os << "(" << PrintExpr(op->base) << ")"
<< "+(" << PrintExpr(op->stride) << "*" << i << ")";
Expand Down

0 comments on commit c63d82f

Please sign in to comment.