]> foleosoft.com Git - QAnsel.git/commitdiff
Sun Mar 3 11:05:34 PM EST 2024
authormiha-q <>
Mon, 4 Mar 2024 04:05:34 +0000 (23:05 -0500)
committermiha-q <>
Mon, 4 Mar 2024 04:05:34 +0000 (23:05 -0500)
src/QAnsel.c
src/gpu/gpu_test.c

index cb5f0c30854bb62f4248ba4b0fdcb11ea73e3f5b..700b1ae927e254b710176f4bbd32fe6afb8f91e7 100644 (file)
@@ -16,8 +16,8 @@ uint8_t USE_GPU = 0;
 #define CL_USE_DEPRECATED_OPENCL_1_2_APIS
 #define CL_TARGET_OPENCL_VERSION 120
 #include <CL/cl.h>
-#include "gpu/gpu.c"
-//#include "gpu/gpu_test.c"
+//#include "gpu/gpu.c"
+#include "gpu/gpu_test.c"
 #endif
 
 typedef struct
index 68d8baaf978a1bede5fa257fa3c8a6ed5256c896..be67be87be0fc60576d8371dc45852e6a28e4a56 100644 (file)
@@ -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++)
     {