]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fix: add missing msg in static_assert (#11143)
authorhydai <redacted>
Wed, 8 Jan 2025 20:03:28 +0000 (04:03 +0800)
committerGitHub <redacted>
Wed, 8 Jan 2025 20:03:28 +0000 (20:03 +0000)
Signed-off-by: hydai <redacted>
ggml/src/ggml-cuda/concat.cu

index 2f42b8a9538e2c5a65de96121672dfbcfcf7db78..aafbaf803b40c18932cd0ee72556e6feba501c35 100644 (file)
@@ -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;