From: miha-q <> Date: Sun, 3 Mar 2024 02:14:57 +0000 (-0500) Subject: Sat Mar 2 09:14:57 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=20f98eb3243e4da12bee923adc27e4937105363c;p=QAnsel.git Sat Mar 2 09:14:57 PM EST 2024 --- 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");