]> foleosoft.com Git - QAnsel.git/commitdiff
Sun Mar 3 02:14:27 AM EST 2024
authormiha-q <>
Sun, 3 Mar 2024 07:14:27 +0000 (02:14 -0500)
committermiha-q <>
Sun, 3 Mar 2024 07:14:27 +0000 (02:14 -0500)
src/gpu/gpu.c

index 3ad6551ea41f4bd934efe3669542b9085f4af83c..9b68ed741820ea81a23c7dfd1cb4519e0750914b 100644 (file)
@@ -110,7 +110,7 @@ void GPU_mmul(float* ptrR, float* ptrA, float* ptrB, size_t rowsA, size_t colsB,
        if (GPU_mmul_cache == NULL)
        {
                //Load and compile program
-               char tmp = malloc(src_gpu_mmul_cl_len);
+               char* tmp = malloc(src_gpu_mmul_cl_len);
                memcpy(tmp, src_gpu_mmul_cl, src_gpu_mmul_cl_len);
                const char* ptr = (const char*)src_gpu_mmul_cl;
                program = clCreateProgramWithSource(GPU_context, 1, (const char**)&tmp, NULL, &err);