[Mlir-commits] [mlir] 7a3ebba - [mlir][sparse][gpu] Add explaining string to three static_assert stmts

Kun Wu llvmlistbot at llvm.org
Fri Jun 30 12:10:52 PDT 2023


Author: Kun Wu
Date: 2023-06-30T14:10:45-05:00
New Revision: 7a3ebba9cb5e8465c91dfce99203f0f8795c7050

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

LOG: [mlir][sparse][gpu] Add explaining string to three static_assert stmts

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

Added: 
    

Modified: 
    mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
index 00cfb65e99a870..acf3412e3da58a 100644
--- a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
+++ b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp
@@ -483,9 +483,12 @@ struct cusparseLtDnMatHandleAndData {
   void *values{nullptr};
 };
 
-static_assert(sizeof(cusparseLtHandle_t) == 11024);
-static_assert(sizeof(cusparseLtSpMatHandleAndData) == 44104);
-static_assert(sizeof(cusparseLtDnMatHandleAndData) == 11032);
+static_assert(sizeof(cusparseLtHandle_t) == 11024,
+              "Unexpected cusparseLt handle size");
+static_assert(sizeof(cusparseLtSpMatHandleAndData) == 44104,
+              "Unexpected cusparseLt sparse matrix handle size");
+static_assert(sizeof(cusparseLtDnMatHandleAndData) == 11032,
+              "Unexpected cusparseLt dense matrix handle size");
 
 extern "C" MLIR_CUDA_WRAPPERS_EXPORT void
 mgpuCreateSparseLtEnv(void *h, CUstream /*stream*/) {


        


More information about the Mlir-commits mailing list