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

index 1aec5413dccaabb68946cd632661a2ead8c98d2b..25f345a6dad64818da2bd83f6071dbf86b7bfb0c 100644 (file)
@@ -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");