From 72e847da11c656c008e97782ba28385aa7ade676 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Sat, 2 Mar 2024 22:00:04 -0500 Subject: [PATCH] Sat Mar 2 10:00:04 PM EST 2024 --- src/gpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"); -- 2.39.5