diff --git a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp --- a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp +++ b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp @@ -322,7 +322,7 @@ auto dTp = static_cast(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(mat); }