From 9019ff0884e4abb75a6d1948658ff1e12f21298b Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Sat, 2 Mar 2024 21:13:41 -0500 Subject: [PATCH] Sat Mar 2 09:13:41 PM EST 2024 --- src/gpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gpu.c b/src/gpu.c index 9770288..c558cab 100644 --- a/src/gpu.c +++ b/src/gpu.c @@ -127,8 +127,17 @@ void GPU_mmul(double* ptrR, double* ptrA, double* ptrB, size_t rowsA, size_t col #endif char ptr[gpu_mmul_cl_len + 1]; memcpy(ptr, gpu_mmul_cl, gpu_mmul_cl_len); + #ifdef GPU_DEBUG + printf("Line %d.\n", __LINE__); + #endif ptr[gpu_mmul_cl_len] = 0; + #ifdef GPU_DEBUG + printf("Line %d.\n", __LINE__); + #endif cl_program program = clCreateProgramWithSource(GPU_context, 1, (const char**)(&ptr), NULL, &err); + #ifdef GPU_DEBUG + printf("Line %d.\n", __LINE__); + #endif printf("---------------------\n%s---------------------\n", ptr); if (err != CL_SUCCESS) { -- 2.39.5