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/11/21 13:47:34 UTC
[GitHub] [tvm] ZQPei commented on a change in pull request #9544: [Target] decouple set_cuda_target_arch with autotvm
ZQPei commented on a change in pull request #9544:
URL: https://github.com/apache/tvm/pull/9544#discussion_r753802783
##########
File path: python/tvm/contrib/nvcc.py
##########
@@ -72,10 +73,12 @@ def compile_cuda(code, target="ptx", arch=None, options=None, path_target=None):
file_target = path_target if path_target else temp_target
cmd = ["nvcc"]
- cmd += ["--%s" % target, "-O3"]
+ cmd += ["--%s" % compile_target, "-O3"]
if isinstance(arch, list):
cmd += arch
- else:
+ if isinstance(arch, tvm.ir.container.Array):
Review comment:
Yes, of course.
--
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