[Mlir-commits] [mlir] 7e44f07 - [mlir][gpu][sparse] fix broken type in cusparseCreateCsr

Kun Wu llvmlistbot at llvm.org
Thu Jun 1 11:06:17 PDT 2023


Author: Kun Wu
Date: 2023-06-01T18:06:09Z
New Revision: 7e44f0736a24a36ea40d733bece38896e70e60c7

URL: https://github.com/llvm/llvm-project/commit/7e44f0736a24a36ea40d733bece38896e70e60c7
DIFF: https://github.com/llvm/llvm-project/commit/7e44f0736a24a36ea40d733bece38896e70e60c7.diff

LOG: [mlir][gpu][sparse] fix broken type in cusparseCreateCsr

Differential Revision: https://reviews.llvm.org/D151912

Added: 
    

Modified: 
    mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
index 17be418b9bd2..1c9497b19eea 100644
--- a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
+++ b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
@@ -322,7 +322,7 @@ mgpuCreateCsr(intptr_t rows, intptr_t cols, intptr_t nnz, void *rowPos,
   auto dTp = static_cast<cudaDataType_t>(dtp);
   CUSPARSE_REPORT_IF_ERROR(cusparseCreateCsr(&mat, rows, cols, nnz, rowPos,
                                              colIdxs, values, pTp, iTp,
-                                             CUSPARSE_INDEX_BASE_ZERO, dtp))
+                                             CUSPARSE_INDEX_BASE_ZERO, dTp))
   return reinterpret_cast<void *>(mat);
 }
 


        


More information about the Mlir-commits mailing list