From 54cd97e07ebe11bb9730fe224c63b405eafdd4c5 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Mon, 4 Mar 2024 21:11:22 -0500 Subject: [PATCH] Mon Mar 4 09:11:22 PM EST 2024 --- src/QAnsel.c | 12 ++++++------ src/complex.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/QAnsel.c b/src/QAnsel.c index 99e3f3d..21d278d 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -348,12 +348,12 @@ void qansel_run(unsigned char qubitCount, unsigned char bitCount, QInstr* instr, unsigned long int ns, ps; for (unsigned int i = 0; i < instrLen; i++) { - ns = get_time(); - if (i > 0) - { - printf("%s: %lu\n", instr[i].n, ns - ps); - } - ps = ns; + //ns = get_time(); + //if (i > 0) + //{ + // printf("%s: %lu\n", instr[i].n, ns - ps); + //} + //ps = ns; cpx_t qqq; cpx_mtx_get(&stateVector, 0, 0, &qqq); diff --git a/src/complex.c b/src/complex.c index d539e83..f665448 100644 --- a/src/complex.c +++ b/src/complex.c @@ -517,7 +517,7 @@ void cpx_mtx_knk_metal(float* ptrR, float* ptrA, float* ptrB, int rowsA, int col err = clSetKernelArg(kernel, 6, sizeof(int), &colsB); gpuerr(clSetKernelArg); //Run the program - err = clEnqueueNDRangeKernel(cpx_mtx_command_queue, kernel, 2, NULL, (size_t[]){rowsR, colsR}, NULL, 0, NULL, NULL); + err = clEnqueueNDRangeKernel(cpx_mtx_command_queue, kernel, 1, NULL, (size_t[]){rowsR}, NULL, 0, NULL, NULL); gpuerr(clEnqueueNDRangeKernel); //Wait for completion -- 2.39.5