[mlir][sparse][gpu] Add explaining string to three static_assert stmts
authorKun Wu <11816012+K-Wu@users.noreply.github.com>
Fri, 30 Jun 2023 18:32:13 +0000 (13:32 -0500)
committerKun Wu <11816012+K-Wu@users.noreply.github.com>
Fri, 30 Jun 2023 19:10:45 +0000 (14:10 -0500)
Differential Revision: https://reviews.llvm.org/D154243

mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp

index 00cfb65..acf3412 100644 (file)
@@ -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*/) {