From 6db3cfc34761fbdd41fdbb09bf7480ed20e75054 Mon Sep 17 00:00:00 2001 From: ghostplant Date: Thu, 22 Apr 2021 09:56:48 +0800 Subject: [PATCH] Remove unnecessary bracelet around make_int Turning from `((make_int4)(exp))` to `(make_int4(exp))`. The former case is incompatible with "macro-defined function". --- src/target/source/codegen_cuda.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/source/codegen_cuda.cc b/src/target/source/codegen_cuda.cc index e54acd2221d1..cd02dcc7abbc 100644 --- a/src/target/source/codegen_cuda.cc +++ b/src/target/source/codegen_cuda.cc @@ -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 << ")";