From: miha-q <> Date: Sun, 3 Mar 2024 06:16:36 +0000 (-0500) Subject: Sun Mar 3 01:16:36 AM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=6457bb0d9e14bdf04ea648669b44e9db04d92189;p=QAnsel.git Sun Mar 3 01:16:36 AM EST 2024 --- diff --git a/src/gpu/gpu.c b/src/gpu/gpu.c index 1aec541..25f345a 100644 --- a/src/gpu/gpu.c +++ b/src/gpu/gpu.c @@ -149,7 +149,7 @@ 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); + program = clCreateProgramWithBinary(GPU_context, 1, &GPU_device_id, &GPU_mmul_cache_len, &GPU_mmul_cache, NULL, &err); if (err != CL_SUCCESS) { fprintf(stderr, "GPU fatal error: clCreateProgramWithBinary() failed.\n");