From: miha-q <> Date: Sun, 3 Mar 2024 01:58:58 +0000 (-0500) Subject: Sat Mar 2 08:58:58 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=61790c3b1dbec50676422448cfdd03075281b220;p=QAnsel.git Sat Mar 2 08:58:58 PM EST 2024 --- diff --git a/src/gpu.c b/src/gpu.c index f9ff4ec..82c89c3 100644 --- a/src/gpu.c +++ b/src/gpu.c @@ -125,7 +125,8 @@ 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, &gpu_mmul_cl, &gpu_mmul_cl_len, &err); + const char* ptr = (const char*)gpu_mmul_cl; + cl_program program = clCreateProgramWithSource(GPU_context, 1, &ptr, &gpu_mmul_cl_len, &err); if (err != CL_SUCCESS) { fprintf(stderr, "GPU fatal error: clCreateProgramWithSource() failed.\n");