Commit 78ab1ed22 for llama.cpp
commit 78ab1ed222410777bc1431254de47f2fae04428f
Author: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
Date: Fri Dec 4 14:16:18 2026 +0100
opencl : fix build (#33691)
diff --git a/ggml/src/ggml-opencl/ops/flash_attn.cpp b/ggml/src/ggml-opencl/ops/flash_attn.cpp
index ac533f776..f25882667 100644
--- a/ggml/src/ggml-opencl/ops/flash_attn.cpp
+++ b/ggml/src/ggml-opencl/ops/flash_attn.cpp
@@ -1,6 +1,8 @@
#include "../cl-common.h"
#include "../ops.h"
+#include <climits>
+
struct ggml_cl_flash_attn_temp_buffer {
cl_mem data = nullptr;
diff --git a/ggml/src/ggml-opencl/ops/mul_mat.cpp b/ggml/src/ggml-opencl/ops/mul_mat.cpp
index 412d4a8f8..dbbd9ba9e 100644
--- a/ggml/src/ggml-opencl/ops/mul_mat.cpp
+++ b/ggml/src/ggml-opencl/ops/mul_mat.cpp
@@ -1,6 +1,8 @@
#include "../cl-common.h"
#include "../ops.h"
+#include <climits>
+
static std::string ggml_cl_q2_k_mm_options(const ggml_backend_opencl_context * backend_ctx) {
const bool x2 = backend_ctx->gpu_family == ADRENO &&
(backend_ctx->adreno_gen == ADRENO_GPU_GEN::A8X || backend_ctx->adreno_gen == ADRENO_GPU_GEN::X2E);
diff --git a/ggml/src/ggml-opencl/ops/mul_mat_adreno.cpp b/ggml/src/ggml-opencl/ops/mul_mat_adreno.cpp
index 653db979a..55997ab15 100644
--- a/ggml/src/ggml-opencl/ops/mul_mat_adreno.cpp
+++ b/ggml/src/ggml-opencl/ops/mul_mat_adreno.cpp
@@ -1,6 +1,8 @@
#include "../cl-common.h"
#include "../ops.h"
+#include <climits>
+
#ifdef GGML_OPENCL_USE_ADRENO_KERNELS
static bool ggml_cl_coopk_dp4a_enabled(const ggml_backend_opencl_context * backend_ctx) {
static const char * const env = getenv("GGML_OPENCL_COOPK_DP4A");
diff --git a/ggml/src/ggml-opencl/ops/mul_mat_id.cpp b/ggml/src/ggml-opencl/ops/mul_mat_id.cpp
index 8d7755661..57e30fd4c 100644
--- a/ggml/src/ggml-opencl/ops/mul_mat_id.cpp
+++ b/ggml/src/ggml-opencl/ops/mul_mat_id.cpp
@@ -1,6 +1,7 @@
#include "../cl-common.h"
#include "../ops.h"
+#include <climits>
#include <initializer_list>
void ggml_cl_moe_combine_fused(ggml_backend_t backend, const ggml_tensor * mul, const ggml_tensor * dst) {