From: miha-q <> Date: Mon, 4 Mar 2024 04:05:34 +0000 (-0500) Subject: Sun Mar 3 11:05:34 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=f3d3182e3aa56e2dbf9c82139b54fbc995dd3315;p=QAnsel.git Sun Mar 3 11:05:34 PM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index cb5f0c3..700b1ae 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -16,8 +16,8 @@ uint8_t USE_GPU = 0; #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #define CL_TARGET_OPENCL_VERSION 120 #include -#include "gpu/gpu.c" -//#include "gpu/gpu_test.c" +//#include "gpu/gpu.c" +#include "gpu/gpu_test.c" #endif typedef struct diff --git a/src/gpu/gpu_test.c b/src/gpu/gpu_test.c index 68d8baa..be67be8 100644 --- a/src/gpu/gpu_test.c +++ b/src/gpu/gpu_test.c @@ -27,7 +27,7 @@ void GPU_mmul(float* ptrR, float* ptrA, float* ptrB, size_t rowsA, size_t colsB, } } -void GPU_knk(float* ptrR, size_t rowsR, size_t colsR, float* ptrA, size_t rowsA, size_t colsA, float* ptrB, size_t rowsB, size_t colsB) +void GPU_knk(float* ptrR, int rowsR, int colsR, float* ptrA, int rowsA, int colsA, float* ptrB, int rowsB, int colsB) { for (int i = 0; i < rowsR; i++) {