浏览代码

fix: add missing msg in static_assert (#11143)

Signed-off-by: hydai <z54981220@gmail.com>
hydai 1 年之前
父节点
当前提交
8d59d91171
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ggml/src/ggml-cuda/concat.cu

+ 1 - 1
ggml/src/ggml-cuda/concat.cu

@@ -124,7 +124,7 @@ static __global__ void __launch_bounds__(CUDA_CONCAT_BLOCK_SIZE)
           uint64_t   nb1,
           uint64_t   nb2,
           uint64_t   nb3){
-    static_assert(dim >= 0 && dim <= 3);
+    static_assert(dim >= 0 && dim <= 3, "dim must be in [0, 3]");
 
     const int64_t i3 = blockIdx.z;
     const int64_t i2 = blockIdx.y;