From: miha-q <> Date: Sun, 3 Mar 2024 06:17:53 +0000 (-0500) Subject: Sun Mar 3 01:17:53 AM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=c1edd017c373ec279de4b5d64eb99e0355c66fd9;p=QAnsel.git Sun Mar 3 01:17:53 AM EST 2024 --- diff --git a/src/gpu/gpu.c b/src/gpu/gpu.c index 25f345a..1aec541 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, &GPU_mmul_cache, NULL, &err); + 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");