From 20f98eb3243e4da12bee923adc27e4937105363c Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Sat, 2 Mar 2024 21:14:57 -0500 Subject: [PATCH] Sat Mar 2 09:14:57 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 31129c0..f88e77f 100644 --- a/src/gpu.c +++ b/src/gpu.c @@ -138,7 +138,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 - cl_program program = clCreateProgramWithSource(GPU_context, 1, (const char**)(&ptr), NULL, &err); + cl_program program = clCreateProgramWithSource(GPU_context, 1, (const char**)(ptr), NULL, &err); if (err != CL_SUCCESS) { fprintf(stderr, "GPU fatal error: clCreateProgramWithSource() failed.\n"); -- 2.39.5