From: hydai Date: Wed, 8 Jan 2025 20:03:28 +0000 (+0800) Subject: fix: add missing msg in static_assert (llama/11143) X-Git-Tag: upstream/0.0.1642~12 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=58da3fdb15b9f0124da6418c4eb24438077f5903;p=pkg%2Fggml%2Fsources%2Fggml fix: add missing msg in static_assert (llama/11143) Signed-off-by: hydai --- diff --git a/src/ggml-cuda/concat.cu b/src/ggml-cuda/concat.cu index 2f42b8a9..aafbaf80 100644 --- a/src/ggml-cuda/concat.cu +++ b/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;