]> foleosoft.com Git - QAnsel.git/commitdiff
Sat Mar 2 08:58:58 PM EST 2024
authormiha-q <>
Sun, 3 Mar 2024 01:58:58 +0000 (20:58 -0500)
committermiha-q <>
Sun, 3 Mar 2024 01:58:58 +0000 (20:58 -0500)
src/gpu.c

index f9ff4ec5baff009adb12068e7ad8ad43ad378942..82c89c3de0d225243d3ec63b26c655170a6509f4 100644 (file)
--- a/src/gpu.c
+++ b/src/gpu.c
@@ -125,7 +125,8 @@ void GPU_mmul(double* ptrR, double* ptrA, double* ptrB, size_t rowsA, size_t col
        #ifdef GPU_DEBUG
        printf("Line %d.\n", __LINE__);
        #endif
-       cl_program program = clCreateProgramWithSource(GPU_context, 1, &gpu_mmul_cl, &gpu_mmul_cl_len, &err);
+       const char* ptr = (const char*)gpu_mmul_cl;
+       cl_program program = clCreateProgramWithSource(GPU_context, 1, &ptr, &gpu_mmul_cl_len, &err);
        if (err != CL_SUCCESS)
        {
                fprintf(stderr, "GPU fatal error: clCreateProgramWithSource() failed.\n");