You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "sunggg (via GitHub)" <gi...@apache.org> on 2023/07/29 04:48:32 UTC

[GitHub] [tvm] sunggg commented on a diff in pull request #15435: [Unity] cuda graph support for cublas

sunggg commented on code in PR #15435:
URL: https://github.com/apache/tvm/pull/15435#discussion_r1278245037


##########
src/runtime/contrib/cublas/cublas.cc:
##########
@@ -239,8 +239,12 @@ void CallCublasLt(cublasLtHandle_t hdl, const DLTensor* A, const DLTensor* B, co
   auto B_data = static_cast<char*>(B->data) + B->byte_offset;
   auto C_data = static_cast<char*>(C->data) + C->byte_offset;
 
+  auto func = tvm::runtime::Registry::Get("runtime.get_cuda_stream");
+  ICHECK(func != nullptr);
+  cudaStream_t stream = static_cast<cudaStream_t>((*func)().operator void*());

Review Comment:
   Thanks for the suggestion! Reflected. 



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