You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/08/24 16:17:41 UTC
[GitHub] [tvm] tmoreau89 commented on a change in pull request #8636: [OpenCL] Add vectorization to cuda conv2d_nhwc schedule
tmoreau89 commented on a change in pull request #8636:
URL: https://github.com/apache/tvm/pull/8636#discussion_r695005091
##########
File path: python/tvm/topi/gpu/conv2d_nhwc.py
##########
@@ -85,15 +87,17 @@ def schedule_conv2d_nhwc_direct(cfg, s, Conv):
thread_yz = te.thread_axis((0, vthread_n), "vthread", name="vy")
# Schedule for output
- ni, hi, wi, fi = s[output].op.axis
- bz = s[output].fuse(hi, wi)
+ ni, _, wi, fi = s[output].op.axis
+ bz = wi
+ fi, vec = s[output].split(fi, factor=vec_factor)
+ s[output].vectorize(vec)
Review comment:
Thanks @echuraev for providing details on the performance gains here, quite a drastic improvement here.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org