From 3530d4b753fa57518e9f04c74ff0146de886b64e Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Wed, 17 May 2023 19:17:09 +0800 Subject: [PATCH] added more debugging --- ggml-opencl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ggml-opencl.cpp b/ggml-opencl.cpp index 73e15862c..ea46c479a 100644 --- a/ggml-opencl.cpp +++ b/ggml-opencl.cpp @@ -617,6 +617,7 @@ static void ggml_cl_mul_mat_f32(const ggml_tensor * src0, const ggml_tensor * sr &queue, &ev_sgemm); if (status != clblast::StatusCode::kSuccess) { + printf("\nF32 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status); GGML_ASSERT(false); } @@ -715,6 +716,7 @@ static void ggml_cl_mul_mat_f16(const ggml_tensor * src0, const ggml_tensor * sr &queue, &ev_sgemm); if (status != clblast::StatusCode::kSuccess) { + printf("\nF16 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status); GGML_ASSERT(false); } @@ -824,7 +826,7 @@ static void ggml_cl_mul_mat_q_f32(const ggml_tensor * src0, const ggml_tensor * &queue, &ev_sgemm); if (status != clblast::StatusCode::kSuccess) { - printf("\nYou may be out of VRAM. Please check if you have enough.\n"); + printf("\nQF32 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status); GGML_ASSERT(false); } }