From: miha-q <> Date: Sun, 3 Mar 2024 02:59:24 +0000 (-0500) Subject: Sat Mar 2 09:59:24 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=8ac33f821b203843916912d5f16f82f5d23f46db;p=QAnsel.git Sat Mar 2 09:59:24 PM EST 2024 --- diff --git a/src/gpu.c b/src/gpu.c index 670e595..4cd4ec3 100644 --- a/src/gpu.c +++ b/src/gpu.c @@ -127,7 +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 = 0; + const size_t b = strlen(src_gpu_mmul_cl); cl_program program = clCreateProgramWithSource(GPU_context, 1, &src_gpu_mmul_cl, &b, &err); if (err != CL_SUCCESS) {