]> foleosoft.com Git - QAnsel.git/commitdiff
Sun Mar 3 01:15:30 AM EST 2024
authormiha-q <>
Sun, 3 Mar 2024 06:15:30 +0000 (01:15 -0500)
committermiha-q <>
Sun, 3 Mar 2024 06:15:30 +0000 (01:15 -0500)
src/gpu/gpu.c

index cebe490a96085d77838a459a382a97aaceda4bb0..1aec5413dccaabb68946cd632661a2ead8c98d2b 100644 (file)
@@ -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