From: miha-q <> Date: Sun, 3 Mar 2024 02:14:29 +0000 (-0500) Subject: Sat Mar 2 09:14:29 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=698c1a3754715e28fec6cd7171b3de145e7afd96;p=QAnsel.git Sat Mar 2 09:14:29 PM EST 2024 --- diff --git a/src/gpu.c b/src/gpu.c index c558cab..31129c0 100644 --- a/src/gpu.c +++ b/src/gpu.c @@ -134,11 +134,11 @@ 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); + printf("---------------------\n%s---------------------\n", ptr); #ifdef GPU_DEBUG printf("Line %d.\n", __LINE__); #endif - printf("---------------------\n%s---------------------\n", ptr); + cl_program program = clCreateProgramWithSource(GPU_context, 1, (const char**)(&ptr), NULL, &err); if (err != CL_SUCCESS) { fprintf(stderr, "GPU fatal error: clCreateProgramWithSource() failed.\n");