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

index 54566e5165beb4d01ef4df69305c159235dfc9a8..d98ec830de2d15213b5fdba330595ff107372f4a 100644 (file)
--- a/src/gpu.c
+++ b/src/gpu.c
@@ -126,7 +126,7 @@ void GPU_mmul(double* ptrR, double* ptrA, double* ptrB, size_t rowsA, size_t col
        printf("Line %d.\n", __LINE__);
        #endif
        printf("------------------------------\n%s\n------------------------------\n", src_gpu_mmul_cl); 
-       cl_program program = clCreateProgramWithSource(GPU_context, 1, (const char**)(&src_gpu_mmul_cl), NULL, &err);
+       cl_program program = clCreateProgramWithSource(GPU_context, 1, &src_gpu_mmul_cl, NULL, &err);
        if (err != CL_SUCCESS)
        {
                fprintf(stderr, "GPU fatal error: clCreateProgramWithSource() failed.\n");