junrushao1994 commented on a change in pull request #8716:
URL: https://github.com/apache/tvm/pull/8716#discussion_r690501400
##########
File path: src/tir/schedule/concrete_schedule.cc
##########
@@ -345,7 +346,44 @@ Array<LoopRV> ConcreteScheduleNode::Split(const LoopRV&
loop_rv,
return CreateRV<LoopRV>(results);
}
-/******** Schedule: compute location ********/
+/******** Schedule: Manipulate ForKind ********/
+
+void ConcreteScheduleNode::Parallel(const LoopRV& loop_rv) {
+ TVM_TIR_SCHEDULE_BEGIN();
+ tir::Parallel(state_, this->GetSRef(loop_rv));
+ this->state_->DebugVerify();
+ TVM_TIR_SCHEDULE_END("parallel", this->error_render_level_);
+}
+
+void ConcreteScheduleNode::Vectorize(const LoopRV& loop_rv) {
+ TVM_TIR_SCHEDULE_BEGIN();
+ tir::Vectorize(state_, this->GetSRef(loop_rv));
+ this->state_->DebugVerify();
+ TVM_TIR_SCHEDULE_END("vectorize", this->error_render_level_);
+}
+
+void ConcreteScheduleNode::Bind(const LoopRV& loop_rv, const String&
thread_axis) {
+ if (thread_axis == "vthread") {
+ LOG(WARNING) << "`vthread` is legacy behavior and is going to be
deprecated. Please use "
+ "`vthread.x`, `vthread.y` and `vthread.z` instead";
+ }
Review comment:
I believe so. Why not :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]