Laurawly commented on a change in pull request #7146:
URL: https://github.com/apache/tvm/pull/7146#discussion_r550363118



##########
File path: python/tvm/relay/op/strategy/cuda.py
##########
@@ -657,6 +657,23 @@ def batch_matmul_strategy_cuda(attrs, inputs, out_type, 
target):
             name="batch_matmul_cublas.cuda",
             plevel=15,
         )
+    if target.kind.name == "cuda" and 
nvcc.have_tensorcore(tvm.gpu(0).compute_version):

Review comment:
       Maybe it's better to use `nvcc.have_tensorcore(target=target)` here 
since `tvm.gpu(0)` might not exist?




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to