[Mlir-commits] [mlir] [mlir][sparse][gpu] refine type of workspace size variables (PR #66438)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Sep 14 14:54:07 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
<details>
<summary>Changes</summary>
Rationale:
Some compiler settings don't like the size_t vs uint64_t setup.
--
Full diff: https://github.com/llvm/llvm-project/pull/66438.diff
1 Files Affected:
- (modified) mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp (+3-3)
<pre>
diff --git a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
index 7bf6804902479a8..8a1417d7750e586 100644
--- a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
+++ b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
@@ -792,9 +792,9 @@ mgpuCuSparseLtSpMMBufferSize(void *bs, int32_t ma, int32_t mb, void *a, void *b,
auto matA = reinterpret_cast<cusparseLtSpMatHandleAndData *>(a);
auto matB = reinterpret_cast<cusparseLtDnMatHandleAndData *>(b);
auto matC = reinterpret_cast<cusparseLtDnMatHandleAndData *>(c);
- auto workspace_size = reinterpret_cast<int64_t *>(bs);
- auto compressed_size = &(reinterpret_cast<int64_t *>(bs)[1]);
- auto compressed_buffer_size = &(reinterpret_cast<int64_t *>(bs)[2]);
+ auto workspace_size = reinterpret_cast<size_t *>(bs);
+ auto compressed_size = &(reinterpret_cast<size_t *>(bs)[1]);
+ auto compressed_buffer_size = &(reinterpret_cast<size_t *>(bs)[2]);
auto cTp = static_cast<cusparseComputeType>(ctp);
cusparseOperation_t modeA = static_cast<cusparseOperation_t>(ma);
</pre>
</details>
https://github.com/llvm/llvm-project/pull/66438
More information about the Mlir-commits
mailing list