From 3684dc49c42e585c0efb50c5b3fa94637a415500 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Sun, 3 Mar 2024 01:15:30 -0500 Subject: [PATCH] Sun Mar 3 01:15:30 AM EST 2024 --- src/gpu/gpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gpu/gpu.c b/src/gpu/gpu.c index cebe490..1aec541 100644 --- a/src/gpu/gpu.c +++ b/src/gpu/gpu.c @@ -150,6 +150,11 @@ void GPU_mmul(float* ptrR, float* ptrA, float* ptrB, size_t rowsA, size_t colsB, else { program = clCreateProgramWithBinary(GPU_context, 1, &GPU_device_id, &GPU_mmul_cache_len, (const unsigned char**)&GPU_mmul_cache, NULL, &err); + if (err != CL_SUCCESS) + { + fprintf(stderr, "GPU fatal error: clCreateProgramWithBinary() failed.\n"); + exit(1); + } } //Setup kernel -- 2.39.5