[Mlir-commits] [mlir] 012c0cc - [mlir] NFC - Avoid unused symbol in opt mode.
Nicolas Vasilache
llvmlistbot at llvm.org
Thu Oct 14 04:26:49 PDT 2021
Author: Nicolas Vasilache
Date: 2021-10-14T11:26:33Z
New Revision: 012c0cc7c38c58ca14fe51e59ddbd7399489ee7f
URL: https://github.com/llvm/llvm-project/commit/012c0cc7c38c58ca14fe51e59ddbd7399489ee7f
DIFF: https://github.com/llvm/llvm-project/commit/012c0cc7c38c58ca14fe51e59ddbd7399489ee7f.diff
LOG: [mlir] NFC - Avoid unused symbol in opt mode.
Added:
Modified:
mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
index 9ee8057aa4637..9fb3c100feaed 100644
--- a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
+++ b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
@@ -179,6 +179,7 @@ mgpuMemHostRegisterMemRef(int64_t rank, StridedMemRefType<char, 1> *descriptor,
}
uint64_t sizeBytes = sizes[0] * denseStrides[0] * elementSizeBytes;
int64_t *strides = &sizes[rank];
+ (void)strides;
for (unsigned i = 0; i < rank; ++i)
assert(strides[i] == denseStrides[i] &&
"Mismatch in computed dense strides");
More information about the Mlir-commits
mailing list