Skip to content

Commit

Permalink
[MetaSchedule] Swap the order of RewriteTensorize and VerifyGPUCode t…
Browse files Browse the repository at this point in the history
…o reduce tuning time (apache#13259)

* [MetaSchedule] Swap the order of RewriteTensorize and VerifyGPUCode to
reduce tuning time

* add comment
  • Loading branch information
masahi authored Nov 2, 2022
1 parent 87f52af commit 7536068
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/meta_schedule/postproc/postproc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ Array<Postproc> Postproc::DefaultCUDATensorCore() {
Postproc::RewriteUnboundBlock(/*max_threadblocks=*/256),
Postproc::RewriteParallelVectorizeUnroll(),
Postproc::RewriteReductionBlock(),
Postproc::RewriteTensorize(/*vectorize_init_loop=*/false),
Postproc::VerifyGPUCode(),
// RewriteTensorize is relatively expensive and it doesn't affect the validity of a sample, so
// run it only on samples that have passed VerifyGPUCode.
Postproc::RewriteTensorize(/*vectorize_init_loop=*/false),
};
}

Expand Down

0 comments on commit 7536068

Please sign in to comment.