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/1.7.4+33~11 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=262d0abc8743a57ed799707e6dfbc824294942a4;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp fix: add missing msg in static_assert (llama/11143) Signed-off-by: hydai --- diff --git a/ggml/src/ggml-cuda/concat.cu b/ggml/src/ggml-cuda/concat.cu index 2f42b8a9..aafbaf80 100644 --- a/ggml/src/ggml-cuda/concat.cu +++ b/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;