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/03/02 06:47:01 UTC

[GitHub] [tvm] kongroo commented on a change in pull request #7561: [Codegen][CUDA] Fix: cuda codegen vectorize cast

kongroo commented on a change in pull request #7561:
URL: https://github.com/apache/tvm/pull/7561#discussion_r585300157



##########
File path: tests/python/unittest/test_target_codegen_cuda.py
##########
@@ -511,8 +511,8 @@ def check(t0, t1):
 
         # schedule
         s = tvm.te.create_schedule(C.op)
-        ob, ib = s[C].split(s[C].op.axis[0], nparts=32)
-        _, iib = s[C].split(ib, factor=4)
+        ob, ib = s[C].split(s[C].op.axis[0], nparts=n // factor)

Review comment:
       like this?
   ```python
   ob, ib = s[C].split(s[C].op.axis[0], factor=factor)
   # _, iib = s[C].split(ib, factor=factor)
   s[C].vectorize(ib)
   ```




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org