From 96c99cea8de60cf16e6ef973b2443652b7358500 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Sat, 2 Mar 2024 21:52:12 -0500 Subject: [PATCH] Sat Mar 2 09:52:12 PM EST 2024 --- src/gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu.c b/src/gpu.c index 54566e5..d98ec83 100644 --- 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"); -- 2.39.5