0013-fix-missing-arg-in-static-assert-on-windows.patch 829 B

12345678910111213141516171819202122
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: jmorganca <jmorganca@gmail.com>
  3. Date: Sat, 14 Dec 2024 12:54:00 -0800
  4. Subject: [PATCH] fix missing arg in static assert on windows
  5. ---
  6. ggml/src/ggml-cuda/concat.cu | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/ggml/src/ggml-cuda/concat.cu b/ggml/src/ggml-cuda/concat.cu
  9. index 2f42b8a9..5eb9f08d 100644
  10. --- a/ggml/src/ggml-cuda/concat.cu
  11. +++ b/ggml/src/ggml-cuda/concat.cu
  12. @@ -124,7 +124,7 @@ static __global__ void __launch_bounds__(CUDA_CONCAT_BLOCK_SIZE)
  13. uint64_t nb1,
  14. uint64_t nb2,
  15. uint64_t nb3){
  16. - static_assert(dim >= 0 && dim <= 3);
  17. + static_assert(dim >= 0 && dim <= 3, "dim must be between 0 and 3");
  18. const int64_t i3 = blockIdx.z;
  19. const int64_t i2 = blockIdx.y;