From: miha-q <> Date: Sun, 3 Mar 2024 03:00:04 +0000 (-0500) Subject: Sat Mar 2 10:00:04 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=72e847da11c656c008e97782ba28385aa7ade676;p=QAnsel.git Sat Mar 2 10:00:04 PM EST 2024 --- diff --git a/src/gpu.c b/src/gpu.c index 4cd4ec3..dad650a 100644 --- a/src/gpu.c +++ b/src/gpu.c @@ -127,8 +127,7 @@ void GPU_mmul(double* ptrR, double* ptrA, double* ptrB, size_t rowsA, size_t col #endif printf("------------------------------\n%s\n------------------------------\n", src_gpu_mmul_cl); - const size_t b = strlen(src_gpu_mmul_cl); - cl_program program = clCreateProgramWithSource(GPU_context, 1, &src_gpu_mmul_cl, &b, &err); + cl_program program = clCreateProgramWithSource(GPU_context, 1, (const char**)&src_gpu_mmul_cl, NULL, &err); if (err != CL_SUCCESS) { fprintf(stderr, "GPU fatal error: clCreateProgramWithSource() failed.\n");