You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "creaiter (via GitHub)" <gi...@apache.org> on 2024/02/01 00:21:58 UTC

Re: [PR] [Unity][Cutlass] Fix C source generation of dense operation [tvm]

creaiter commented on code in PR #16476:
URL: https://github.com/apache/tvm/pull/16476#discussion_r1473645951


##########
python/tvm/contrib/cutlass/gen_tensor_op.py:
##########
@@ -566,7 +566,10 @@ def get_flattened_batch_dim(arg_name, batch_rank):
         transposed = "transposed" in func_name or "dense" in func_name
         lhs_arg_idx = _get_optional_int_annotation(annotations, "lhs_arg_idx", 0)
         rhs_arg_idx = _get_optional_int_annotation(annotations, "rhs_arg_idx", 1)
-        bias_arg_idx = _get_optional_int_annotation(annotations, "bias_arg_idx", None)
+        if "bias" in func_name:
+            bias_arg_idx = _get_optional_int_annotation(annotations, "bias_arg_idx", 2)

Review Comment:
   Oh, now I see the CUDA.cmake#L47.
   
   In my case, the `CMAKE_CUDA_ARCHITECTURES` is already defined as 52. Thus, it is not changed to native.
   (I compiled with cmake version 3.28.1)



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