From 4f7e57a23f836dcddee2bf9c75bc9cf2060e31d8 Mon Sep 17 00:00:00 2001 From: slaren Date: Thu, 21 Mar 2024 13:41:43 +0100 Subject: [PATCH] cuda : fix LLAMA_CUDA_F16 build --- ggml-cuda.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index 280839ea4..04c6f5d07 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -9453,7 +9453,7 @@ static void ggml_cuda_op_dequantize_mul_mat_vec( // on some GPUs it is faster to convert src1 to half and to use half precision intrinsics #ifdef GGML_CUDA_F16 - cuda_pool_alloc src1_dfloat_a; + ggml_cuda_pool_alloc src1_dfloat_a(ctx.pool()); half * src1_dfloat = nullptr; // dfloat == half bool src1_convert_f16 =