]> foleosoft.com Git - QAnsel.git/commitdiff
Sat Mar 2 09:25:53 PM EST 2024
authormiha-q <>
Sun, 3 Mar 2024 02:25:53 +0000 (21:25 -0500)
committermiha-q <>
Sun, 3 Mar 2024 02:25:53 +0000 (21:25 -0500)
src/gpu.c

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