From: miha-q <> Date: Mon, 4 Mar 2024 16:11:53 +0000 (-0500) Subject: Mon Mar 4 11:11:53 AM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=7b5a8d4ea80ff765977918ae7ef72f99928b8691;p=QAnsel.git Mon Mar 4 11:11:53 AM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index 6615e70..16695ef 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -1409,6 +1409,7 @@ void process(int argc, char** argv) void main(int argc, char** argv) { USE_GPU = cpx_mtx_begin(); + USE_GPU = 0; RANDOM_FILE = fopen("/dev/TrueRNG0", "r"); if (!RANDOM_FILE) RANDOM_FILE = fopen("/dev/random", "r"); process(argc, argv); diff --git a/src/complex.c b/src/complex.c index e751076..5e9a1e9 100644 --- a/src/complex.c +++ b/src/complex.c @@ -152,12 +152,8 @@ void cpx_mtx_knk(float* ptrR, float* ptrA, float* ptrB, int rowsR, int colsR, in { for (int i = 0; i < rowsR; i++) { - for (int j = 0; j < colsR; j++) - { - GPU_GLOBAL_ID_0 = i; - GPU_GLOBAL_ID_1 = j; - kernel_knk(ptrR, ptrA, ptrB, rowsR, colsR, rowsA, colsA, rowsB, colsB); - } + GPU_GLOBAL_ID_0 = i; + kernel_knk(ptrR, ptrA, ptrB, rowsR, colsR, rowsA, colsA, rowsB, colsB); } }